使用JS制定自定义表格
效果图:
HTML代码
<table border="1" cellspacing="0"></table>
行数:<input type="text" id="row" /><br/>
列数:<input type="text" id="col" /><br/>
高度:<input type="text" id="height" /><br/>
宽度:<input type="text" id="width" /><br/>
<input type="button" id="click" value="生成自定义表格" onclick="cann()"/>
<br /><div id="div1"></div>
JSP代码
function Table(row, col, width, height) {
this.row = row;
this.col = col;
this.width = width;
this.heig