js获取url后面的参数
摘要:let url = window.location.href;//http://localhost:3000/edu/edu_teacher?type=2&a=3 if(url.indexOf('?') != -1){ let obj = {}; let arr = url.slice(url.in
阅读全文
posted @
2021-05-21 10:03
月零Ray
阅读(1435)
推荐(0)
jQuery实现动态分割div
摘要:转自:https://www.cnblogs.com/herd/p/6014848.html 演示地址:http://www.vfkjsd.cn/div/2/div.html
阅读全文
posted @
2019-04-01 14:38
月零Ray
阅读(264)
推荐(0)
js replaceAll全部替换
摘要:js不支持replaceAll,可以用函数new RegExp('要替换的内容','g')代替, 代码:
阅读全文
posted @
2018-11-22 15:48
月零Ray
阅读(138)
推荐(0)
js 定时执行
摘要:代码: 格式例子: setTimeout 只执行一次:http://www.runoob.com/jsref/met-win-settimeout.html setInterval 执行多次:http://www.runoob.com/jsref/met-win-setInterval.html
阅读全文
posted @
2018-11-22 15:41
月零Ray
阅读(272)
推荐(0)
js文字展示各种滚动效果
摘要:js文字展示各种滚动效果:http://www.dowebok.com/demo/188/
阅读全文
posted @
2018-11-09 14:09
月零Ray
阅读(182)
推荐(0)