最赞回答 / qq_印迹_0
<!DOCTYPE HTML><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title> 光标聚焦事件 </title> <script type="text/javascript"> function message(that){ alert("请选择,您现在的职业!"); that.blur();...
2015-02-09
var otest = document.getElementById("test");
var newcode=document.createElement("li");
newcode.innerHTML="PHP";
otest.insertBefore(newcode,otest.firstChild);
var newcode=document.createElement("li");
newcode.innerHTML="PHP";
otest.insertBefore(newcode,otest.firstChild);
2015-02-09
document.write(mylist.parentNode.parentNode.parentNode.lastChild.innerHTML);
2015-02-09
已采纳回答 / Fiona0126
..空格跟innerHTML没关系吧。。是你在判断text==""之前有一个document.write(text +"<br>");假如text为空的时候,不就输出一个换行了吗
2015-02-08
已采纳回答 / Ctrls
switch的s是小写,你写成大写了。然后你获得的b是运算符号,不是第二个数字,把后面的switch语句中的parseInt(b)全部改成parseInt(c)就可以了
2015-02-08
节点之间的空白符,在firefox、chrome、opera、safari浏览器是文本节点,所以IE是3,其它浏览器是7,如下图所示:
2015-02-08