会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Stay foolish, stay hungry!
To change ! To do ! To realize !
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
23
下一页
2016年2月6日
201602061615_《Javascript方法之map();filter();——以前一直很混》
摘要: /*"映射的意思,映射为一个新数组,一个经过一定运算的数组"*/ 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)
2016年2月2日
201602021344_《Javascript柯里化uncurrying()(将内置方法独立成为一个通用方法)》
摘要: 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)
201602021314_《Javvascrip柯里化-currying()(类似缓存)》
摘要: 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)
2016年1月24日
201601241116_《Javascript优化(css,dom,loop)》
摘要: 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)
2016年1月4日
201601041244_《Javascript操作link等(兼容写法)》
摘要: var link = document.getElementsByTagName('link')[0];var sheet = link.sheet || link.styleSheet; //兼容ie
阅读全文
posted @ 2016-01-04 12:46 Coca-code
阅读(185)
评论(0)
推荐(0)
2015年12月12日
201512122009_《JavaScript——样式操作(float)》
摘要: 对于非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)
2015年11月14日
201511141852-《NserviceBus》
摘要: Nservicebus
阅读全文
posted @ 2015-11-14 18:53 Coca-code
阅读(154)
评论(0)
推荐(0)
2015年11月4日
201511042030_《JavaScript——DOM 》
摘要:
阅读全文
posted @ 2015-11-04 20:32 Coca-code
阅读(144)
评论(0)
推荐(0)
201511041227_《JavaScript——动态原型对象(优化写法)》
摘要: 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)
2015年10月25日
201510252245_《css——字间距》
摘要: 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
下一页
公告