11 2017 档案

摘要:var r, arr = ['apple', 'strawberry', 'banana', 'pear', 'apple', 'orange', 'orange', 'strawberry']; r = arr.filter(function (element, index, self) { return self.indexOf(element) === index; }); ... 阅读全文
posted @ 2017-11-24 18:20 麦君 阅读(587) 评论(0) 推荐(0)
摘要:接着是子组件的使用history 让我们看看this.context : 阅读全文
posted @ 2017-11-14 11:53 麦君 阅读(1894) 评论(0) 推荐(0)
摘要:.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden} .clearfix{*+height:1%;} 阅读全文
posted @ 2017-11-13 17:52 麦君 阅读(141) 评论(0) 推荐(0)
摘要:Object.prototype.toString.call(data).slice(8, -1).toLowerCase(); 阅读全文
posted @ 2017-11-09 15:21 麦君 阅读(253) 评论(1) 推荐(0)