Fork me on GitHub
摘要: 1.去掉重复字符串 var random = "aabbcca";var num = $.unique(random.split(""));num.join("") 阅读全文
posted @ 2018-02-06 17:07 森海轮回 阅读(89) 评论(0) 推荐(0) 编辑
摘要: :nth-child(n) >选中某个元素,该元素必须是某个父元素下的第n个子元素; p:nth-child(n) >选中p元素,且该p元素必须是某个父元素下的第n个子元素 注意:n是从1开始的 如下代码,p:nth-child(1),只会选中第二个div中第一个子元素p; 不会选中第一个div中的 阅读全文
posted @ 2018-02-06 14:39 森海轮回 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 杠子的博客: http://www.cnblogs.com/haoyijing/tag/js/ 阅读全文
posted @ 2018-02-06 14:01 森海轮回 阅读(56) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a4e1e7b6f4f8 https://www.cnblogs.com/shuiyi/p/5305435.html JS中的对象分为两种, 1.普通对象obj2.函数对象function 任何一个对象都有__proto__,但是只有函数对象有pr 阅读全文
posted @ 2018-02-06 10:03 森海轮回 阅读(109) 评论(0) 推荐(0) 编辑