已采纳回答 / Lyong
<...code...>引用的时候是这样,onclik=del(this)那么obj 就是this this 就是你触发的dom节点。。希望可以帮到你~
2015-07-14
<script type="text/javascript">
window.onunload = onunload_message;
function onunload_message(){
alert("您确定离开该网页吗?");
}
</script>
window.onunload = onunload_message;
function onunload_message(){
alert("您确定离开该网页吗?");
}
</script>
2015-07-14
var infos= [['小A','女',21,'大一'],...,['小J','男',20,'大三']]
for(n=0;n<=infos.length;n++){
if(infos[n][3]=="大一"&&infos[n][1]=="女"){
document.write(infos[n][0]+"<br/>");
}
}
for(n=0;n<=infos.length;n++){
if(infos[n][3]=="大一"&&infos[n][1]=="女"){
document.write(infos[n][0]+"<br/>");
}
}
最新回答 / lucky__star
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>if...else</title><script type="text/JavaScript">function age(){var myage =document.getElementById("div1").valu...
2015-07-13