
javascript
nizhengjia888
这个作者很懒,什么都没留下…
展开
-
jquery 实现抖动效果
jQuery.fn.shake = function (intShakes /*Amount of shakes*/, intDistance /*Shake distance*/, intDuration /*Time duration*/) { this.each(function () { var jqNode = $(this); jqN转载 2017-06-23 17:35:56 · 1059 阅读 · 0 评论 -
json对象转对象数组
<html><head> <title>json对象转数组对象</title></head><body> <script type="text/javascript"&a原创 2018-11-15 18:47:10 · 19861 阅读 · 0 评论 -
js replace全部替换的方法
replace替换第一次出现的字符串 var str = '我在中国北方纯正的中国北方人'; var newstr=str.replace('北方','南方'); console.log(newstr); //我在中国南方纯正的中国南方人使用正则替换字符串中匹配的所有字符串(实现replaceAll效果) var str = '我在中国北方纯正的中国北方人'; var ...原创 2018-11-16 18:01:11 · 6604 阅读 · 1 评论