<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>作了一个简单的例子