摘要: 1.requirejs定义的模块返回的是单例对象.定义模块有下面几种方式 简单的值对:如果一个模块仅含值对,没有任何依赖,则在define()中定义这些值对就好了 //Inside file my/shirt.js: define({ color: "black", size: "unisize" }); 函数式定义:如果一个模块没有任何依赖,但需要一个做setup(初始化工作之类... 阅读全文
posted @ 2016-11-20 20:54 小彭博客 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 使用nodejs中httpProxy代理时候出现404异常 阅读全文
posted @ 2016-08-14 00:00 小彭博客 阅读(3897) 评论(0) 推荐(0) 编辑
摘要: Bluebird-Collections API介绍。 阅读全文
posted @ 2016-07-10 12:40 小彭博客 阅读(527) 评论(0) 推荐(0) 编辑
摘要: bluebird API文档 阅读全文
posted @ 2016-06-26 16:31 小彭博客 阅读(417) 评论(0) 推荐(0) 编辑
摘要: bluebird API文档 阅读全文
posted @ 2016-06-26 16:15 小彭博客 阅读(551) 评论(0) 推荐(0) 编辑
摘要: bluebird API文档 阅读全文
posted @ 2016-06-26 15:45 小彭博客 阅读(676) 评论(0) 推荐(0) 编辑
摘要: The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 35 best practices divided into 7 categories. Looking to optimize your mobile app... 阅读全文
posted @ 2016-05-31 00:26 小彭博客 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 解释: 200 OK (from cache) 是浏览器没有跟服务器确认,直接用了浏览器缓存; 304 Not Modified 是浏览器和服务器多确认了一次缓存有效性,再用的缓存。 触发区别: 200 OK (from cache) 是直接点击链接访问,输入网址按回车访问也能触发;而 304 No 阅读全文
posted @ 2016-05-31 00:17 小彭博客 阅读(2362) 评论(0) 推荐(0) 编辑
摘要: 一些原生js可以替代JQuery方法 阅读全文
posted @ 2016-05-30 00:10 小彭博客 阅读(7565) 评论(0) 推荐(3) 编辑
摘要: 使用closure-compiler+antrun压缩js代码及其需要主要注意错误。 阅读全文
posted @ 2016-04-20 22:56 小彭博客 阅读(3875) 评论(0) 推荐(0) 编辑