function get_tr_array($table) {
$table = preg_replace("'<td[^>]*?>'si",'"',$table)
$table = str_replace("</td>",'",',$table)
$table = str_replace("</tr>","{tr}",$table)
//去HTML 标记
$table = preg_replace("'<[\/\!]*?[^<>]*?>'si","",$table)
//去空白字符
$table = preg_replace("'([\r\n])[\s]+'","",$table)
$table = str_replace(" ","",$table)
$table = str_replace(" ","",$table)
$table = explode(",{tr}",$table)
array_pop($table)
1,需要后台代码的协助,如php, 通过后台程序读取并输出就可以了2,可以实现,最典型的就是采集功能,点击时通过ajax处理,处理好了,将结果返回给前台,同时需要后台语言的支持
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)