使用JavaScript将复杂表格导出为Excel
2009-09-22 00:00:00 来源:WEB开发网测试代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="util.js"></script>
</head>
<body>
<table width="200" border="1" >
<tr>
<td colspan="4" rowspan="2">1234678t</td>
<td>5</td>
<td>k</td>
<td colspan="2">mr</td>
</tr>
<tr>
<td>9</td>
<td colspan="2" rowspan="3">wgbnpt</td>
<td>z</td>
</tr>
<tr>
<td rowspan="2">1013</td>
<td colspan="2" rowspan="3">eh14151920</td>
<td>11</td>
<td>12</td>
<td>c</td>
</tr>
<tr>
<td>16</td>
<td>17</td>
<td>a</td>
</tr>
<tr>
<td>18</td>
<td colspan="5">2122dsj</td>
</tr>
</table>
</body>
</html>
Tags:使用 JavaScript 复杂
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接