这个方法是用来跳转action最后到页面的。
这个方法是用来提交的。可以带值
function toAdd() {
window.location.href("tellist.do?method=toAdd");
}
这个方法是用来提交的。可以带值
function toUpdate(id,tel,area) {
var method = document.getElementById("method");
method.value = "toUpdate";
var tid = document.getElementById("tid");
tid.value = id;
var tel2 = document.getElementById("tel");
tel2.value = tel;
var area2 = document.getElementById("area");
area2.value = area;
var mainForm = document.getElementById("main");
mainForm.submit();
}