![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发中遇到过的JavaScript
yangzhuluo
这个作者很懒,什么都没留下…
展开
-
简单DIV拖动
[code="js"]var x,yvar v=0function $(obj){return document.getElementById(obj)}document.onmouseup=new Function("v=0");function mdown(){if(event.srcElement.className=="ye"){v=1;x=...2009-01-12 13:23:30 · 120 阅读 · 0 评论 -
js 增加行
[code="js"] 第一行 第一行 第一行 第一行 动态添加表行的javascript函数如下: function addRow(){ //添加一行 var newTr = testTbl.insertRow(); //添加列 var newTd0 = newTr.insertCell(); ...2009-01-12 13:26:19 · 150 阅读 · 0 评论