摘要: interface Date{ addHours(h:number); addMinutes(m:number); format(str):string } interface String{ trim():string; solrFormat():string; } interface Array { clear(); remove... 阅读全文
posted @ 2017-09-06 15:52 N1900 阅读(262) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-09-05 17:25 N1900 阅读(1) 评论(0) 推荐(0) 编辑
摘要: html ts jquery drag extends 阅读全文
posted @ 2017-09-05 17:14 N1900 阅读(494) 评论(0) 推荐(0) 编辑
摘要: angular.module('app').filter('trustHtml', ($sce) => { return (html) => { if(typeof(html)=="object"){ return html; } return $sce.trustAsHtml(html||""); } }); request({'url'... 阅读全文
posted @ 2017-04-01 18:39 N1900 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(426) 评论(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 阅读(4189) 评论(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 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: index.js test.js 运行 阅读全文
posted @ 2016-11-26 23:35 N1900 阅读(450) 评论(0) 推荐(0) 编辑
摘要: function copyTextToClipboard(text) { var copyFrom = $(''); copyFrom.text(text); $('body').append(copyFrom); copyFrom.select(); ... 阅读全文
posted @ 2016-09-26 14:02 N1900 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 效果如下 ally and horifffffffffffffffffffffffffffally. ally and horifffffffffffffffffffffffffffally. ally and horifffffffffffffffffffffffffffally. // <![C 阅读全文
posted @ 2016-07-20 21:48 N1900 阅读(355) 评论(0) 推荐(0) 编辑