js教程
JS Replace 全部替换字符 用法
script language=javascript var r= 1\n2\n3\n; //将字母\n替换成分号 alert(r.replace(\n,;)); 结果:1;2\n3\n 只替换了第一个 /script script language=javascript var r= 1\n2\n3\n; //将字母\n替换成分号 alert(r.replace(/\n/g, ;)); 结果:1;2;3; repl...
2017-11-13 08:13:34
jquery实现简单的遮罩层
Jquery超简单遮罩层实现代码 在开发中,为了避免二次提交,遮罩层的运用越来越普遍 看了很多代码,下面跟大家分享一下我认为最简单的遮罩层实现方式: 1.样式如下设置: CSS代码: style type=text/css .mask { position: absolute; top: 0px; filter: alpha...
2016-05-23 21:16:31
js延时提示框
1 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title延时提示框/title style div{margin:10px;fl...
2016-01-25 16:07:12
向表格添加元素删除元素
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title向表格添加元素删除元素/title /head body scr...
2015-12-06 15:03:23
表格隔行变色,鼠标移动行内高亮选中行
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title表格隔行变色/title /head body script window...
2015-12-06 13:58:12
表格应用
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title表格应用/title /head body script window.onl...
2015-12-06 13:42:22
删除dom元素节点
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title删除dom元素节点/title /head body script win...
2015-12-06 12:53:30
如何创建dom元素节点,创建插入元素节点
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title如何创建dom元素节点,创建插入/title /head bo...
2015-12-06 11:25:36
使用className选中元素
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title使用className选中元素/title /head body scri...
2015-12-06 10:24:50
dom方式操作元素属性
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html head meta http-equiv=Content-Type content=text/html; charset=gb2312 / titledom方式操作元素属性/title /head body script...
2015-12-06 10:09:55
  • 首页
  • 1
  • 2
  • 下一页
  • 末页
  • 219