js高级程序设计第332页我用的谷歌浏览器<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Document</title></head><body><p id="p1"><b>hello</b>word</p><script>var range1 = document.createRange(), p1 = document.getElementById("p1");var s=range1.selectNode(p1);console.log(s)//返回undefined</script></body></html>
添加回答
举报
0/150
提交
取消