最赞回答 / 泮池五月风
<...code...> 这是在你的基础之上修改几个标点符号后的代码,运行没问题。注意用英文符号就好了。<...code...>这个是在你的基础上简化的代码,运行结果一样。
2016-06-23
已采纳回答 / qq_让阳光拐个弯_1
第66行的分号是汉字符号(最后一个else结束的那个分号),改成英文符号就好了。建议:在if和else后面加上花括号。例如:if(a==true){ //代码操作}else{//代码操作}
2016-06-23
if(url!=null)
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}
else
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}
}
else
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}
}
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}
else
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}
}
else
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');}
}
已采纳回答 / 慕粉3475549
通过getElementById("p2")获取p元素,存入var p2中,p2.className="two"获取 .two样式,点击按钮激发事件
2016-06-22