![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
粽子爱编程
这个作者很懒,什么都没留下…
展开
-
javascriptde
第一部分//如下代码放在head中dom得到的节点的值为空//可以在body中加onload事件window.onload = init;function init(){var btn = document.getElementById("btn");/**btn.onclick = function(event){alert(this.type)}**//原创 2015-07-23 00:03:10 · 248 阅读 · 0 评论 -
javascript的dom模型
“http://www.w3.org/TR/html4/strict.dtd”> 浏览器对象 <script type ="text/javascript"> function getPwd(){ //dom 中常用的方法getElementById,通过Id获得一个值原创 2015-07-23 00:01:47 · 284 阅读 · 0 评论 -
Html菜单的实现
“http://www.w3.org/TR/html4/strict.dtd”> menu原创 2015-07-23 00:12:21 · 693 阅读 · 0 评论