可将index.html中的jQuery函数:action: function(mode, data) 中的delete改为:
if (mode == 'delete') {
$("#table").tBodies[0].removeChild(this.parentNode);
/*
for (var i = 0; i < source.length; i++) {
if (source[i].id == data) {
source.splice(i, 1);
break;
}
}
*/
}