for (var i = 0 i < 50 i++) {
row = {checked: true, data: [i,T1[i],D1[i]}
}
JQuery构造一个form对象,然后form.submit()就等于是普通form表单向后台提交了!//创建一个form对象
var form = document.createElement("form")
//将form对象添加到body中
document.body.appendChild(form)
//设置form的属性,等价于<form action="XXX.action" method="post"></form>
form.action = 'QuestionAction!pAsk'
form.method = 'post'
//创建隐藏input
var newInput = document.createElement("input")
newInput.setAttribute("type","hidden")
newInput.setAttribute("name","title")
newInput.setAttribute("value",title)
//将隐藏input添加到form中
form.appendChild(newInput)
//提交form对象
form.submit()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)