日期:2014-05-16 浏览次数:20346 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<table>
<tr>
<td>姓名</td>
<td>信息</td>
</tr>
<tr>
<td>张三</td>
<td>北京-西安;&&&&</td>
</tr>
<tr>
<td>李四</td>
<td>;&&&&</td>
</tr>
<tr>
<td>王五</td>
<td>西安-北京;&&&&;武汉</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<table id="tbInfo">
<tr>
<td>姓名</td>
<td>信息</td>
</tr>
<tr>
<td>张三</td>
<td>北京-西安;&&&&</td>
</tr>
<tr>
<td>李四</td>
<td>;&&&&</td>
</tr>
<tr>
<td>王五</td>
<td>西安-北京;&&&&;武汉</td>
</tr>
</table>
<script>
window.onload = function () {
var rows = document.getElementById('tbInfo').rows, arr = [], text;
for (var i = 1; i < rows.length; i++) {
text = rows[i].cells[1].innerHTML.replace(/<[^>]+>/, '').split(