03 2017 档案

摘要:Install the latest version of NodeJS from their website (e.g. 6.X.X). Open the Node.js command prompt as administrator. Run: npm cache clean Run: npm 阅读全文
posted @ 2017-03-24 23:35 N1900 阅读(434) 评论(0) 推荐(0)
摘要:angular.module('app').directive('ScrollTrigger', () => { return { restrict: "A", link:function ($scope,$element,$attrs,$controller) { function debounce(fn, delay) { ... 阅读全文
posted @ 2017-03-15 13:40 N1900 阅读(4212) 评论(0) 推荐(0)
摘要:function debounce(fn, delay) { // 持久化一个定时器 timer let timer = null; // 闭包函数可以访问 timer return function() { // 通过 'this' 和 'arguments' // 获得函数的作用域和参数 let context = this; let ... 阅读全文
posted @ 2017-03-13 23:40 N1900 阅读(1549) 评论(0) 推荐(0)