05 2020 档案

摘要:判断js中的数据类型有一下几种方法:typeof、instanceof、 constructor、 prototype、 $.type()/jquery.type(),接下来主要比较一下这几种方法的异同。 https://www.cnblogs.com/dushao/p/5999563.html 先 阅读全文
posted @ 2020-05-02 16:16 只争朝夕,不负韶华 阅读(209) 评论(0) 推荐(0) 编辑
摘要:// 数组去重合并 function hello(){ console.log("hello"); } function combine(){ return Array.from(new Set([].concat(...arguments))) } console.log(combine([1,2 阅读全文
posted @ 2020-05-02 16:09 只争朝夕,不负韶华 阅读(138) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示