<html>
<head>
</head>
<script type="text/javascript" defer>function add()
{
var table = document.getElementById("table");
var row = table.insertRow();
var cell = row.insertCell();
cell.innerText = "ok";
}
function del()
{
var table = document.getElementById("table");
if (table.rows.length> 0)
{
table.deleteRow(0)
}
}</script><body>
<table id="table" border="1">
</table>
<input type="button" name="b_distributeAll" value="+" onClick="add()"/>
<input type="button" name="b_distributeAll" value="-" onClick="del()"/>
</body>
</html>作了一个简单的例子
<head>
</head>
<script type="text/javascript" defer>function add()
{
var table = document.getElementById("table");
var row = table.insertRow();
var cell = row.insertCell();
cell.innerText = "ok";
}
function del()
{
var table = document.getElementById("table");
if (table.rows.length> 0)
{
table.deleteRow(0)
}
}</script><body>
<table id="table" border="1">
</table>
<input type="button" name="b_distributeAll" value="+" onClick="add()"/>
<input type="button" name="b_distributeAll" value="-" onClick="del()"/>
</body>
</html>作了一个简单的例子
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货