var num1 = "<li class='ord_name_col'> <em class='ord_address'>"; var num2 = infoData[0].Remark.indexOf("</em>"); var str = infoData[0].Remark.substring(num1.length, num2);