1.javascript alter
2.js alter ådocument
javascript alter
å段js
function doSubmit(){
if(confirm("ä½ ç¡®å®å é¤åï¼")){
document.mainform.action = "deleteQuestion.jsp?傲剑苍穹源码question_id="+${ row.question_id}+"&question_desc="+${ row.question_desc};
document.mainform.submit();}
else{
return flase;
}
}
<input type="button" value="å é¤" onclick="doSubmit();"/>
js alter ådocument
//使ç¨å½æ°ä¼ éåæ°å³å¯
for (var i = 1; i <= 6; i++) {
(function(i) {
alert(i);
document.write("<h" + i + ">" + "h" + i + "</h" + i + ">");
})(i);
}