上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: /*"映射的意思,映射为一个新数组,一个经过一定运算的数组"*/ var arr=[1,3,5,6]; var computedArr = arr.map(function(item){ return item*item*item; }); console.log(computedArr); //[ 阅读全文
posted @ 2016-02-06 16:33 Coca-code 阅读(249) 评论(0) 推荐(0)
摘要: Function.prototype.uncurrying = function() { var that = this; return function() { return Function.prototype.call.apply(that, arguments); } }; function 阅读全文
posted @ 2016-02-02 13:46 Coca-code 阅读(139) 评论(0) 推荐(0)
摘要: var currying = function(fn){ var args = []; return function(){ if(arguments.length === 0){ return fn.apply(this,args); }else{ [].push.apply(args,argum 阅读全文
posted @ 2016-02-02 13:17 Coca-code 阅读(213) 评论(0) 推荐(0)
摘要: css:oEl.style.cssText = "border-left:1px solid red";dom:1. document.createDocumentFragment();2. var newDOM = oldDOM.cloneNode(true); oldDOM.parentNod... 阅读全文
posted @ 2016-01-24 12:02 Coca-code 阅读(140) 评论(0) 推荐(0)
摘要: var link = document.getElementsByTagName('link')[0];var sheet = link.sheet || link.styleSheet; //兼容ie 阅读全文
posted @ 2016-01-04 12:46 Coca-code 阅读(185) 评论(0) 推荐(0)
摘要: 对于非IE:ele.style.cssFloat //right对于IE(6+)“ele.style.styleFloat //right-----------------------------------------------------具体运用:(ele.style.cssFloat ||... 阅读全文
posted @ 2015-12-12 20:14 Coca-code 阅读(157) 评论(0) 推荐(0)
摘要: Nservicebus 阅读全文
posted @ 2015-11-14 18:53 Coca-code 阅读(154) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-04 20:32 Coca-code 阅读(144) 评论(0) 推荐(0)
摘要: function Person(userName ,age){ this.userName = userName ; this.age = age; this.family = ['爸爸','妈妈','姐姐','老婆']; if(typeof this.say !== 'function'){ Pe 阅读全文
posted @ 2015-11-04 12:30 Coca-code 阅读(160) 评论(0) 推荐(0)
摘要: letter-spacing:1px; 阅读全文
posted @ 2015-10-25 22:47 Coca-code 阅读(154) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页