大神。。刚学js 求助 表格中删除一行数据!
<script type="text/javascript">
var list = new Array();
list[0] = { "id": "1", "JuanZengRen": "李连杰1", "DanWen": "广州传智", "Moeny": "100000", "DateTime": "2012-11-26" };
list[1] = { "id": "2", "JuanZengRen": "李连杰2", "DanWen": "广州传智", "Moeny": "100000", "DateTime": "2012-11-26" };
list[2] = { "id": "3", "JuanZengRen": "李连杰3", "DanWen": "广州传智", "Moeny": "100000", "DateTime": "2012-11-26" };
list[3] = { "id": "4", "JuanZengRen": "李连杰4", "DanWen": "广州传智", "Moeny": "100000", "DateTime": "2012-11-26" };
list[4] = { "id": "5", "JuanZengRen": "李连杰5", "DanWen": "广州传智", "Moeny": "100000", "DateTime": "2012-11-26" };
window.onload = function ()
{
var tb = document.getElementById("tab");
for (var i = 0; i < list.length; i++)
{
var trNew = tb.insertRow(-1);
trNew.insertCell(-1).innerHTML = list[i].id;
trNew.insertCell(-1).innerHTML = list[i].JuanZengRen;
trNew.insertCell(-1).innerHTML = list[i].DanWen;
trNew.insertCell(-1).innerHTML = list[i].Moeny;
trNew.insertCell(-1).innerHTML = list[i].DateTime;
var td = trNew.insertCell(-1);
td.innerHTML = "<a name = 'aDel' href = 'javascript:del();'>删</a>   <a>改</a>";
};
};
这是我代码 请问点击删除 怎么删除呀
Delete
table
javascript
function
------解决方案--------------------<!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"