摘要: //配置项var config = { /** * Option merge strategies (used in core/util/options)//选项合并策略 */ optionMergeStrategies: Object.create(null), /** * Whether to suppress warnings.//是否抑制警告 */ ... 阅读全文
posted @ 2017-04-05 18:04 刘浩2561179983 阅读(379) 评论(0) 推荐(0) 编辑
摘要: /** * Generate a static keys string from compiler modules.//从编译器生成一个静态键字符串模块。 */ function genStaticKeys (modules) { return modules.reduce(function (keys, m) { return keys.concat(m.staticKeys ... 阅读全文
posted @ 2017-04-05 17:31 刘浩2561179983 阅读(337) 评论(0) 推荐(0) 编辑
摘要: /** * Mix properties into target object.//把多个属性插入目标的对象 */ function extend (to, _from) { for (var key in _from) { to[key] = _from[key]; } return to } /** * Quick object check - this is p... 阅读全文
posted @ 2017-04-05 17:24 刘浩2561179983 阅读(293) 评论(0) 推荐(0) 编辑
摘要: /** * Check if value is primitive//检查该值是否是个原始值 */ function isPrimitive (value) { return typeof value === 'string' || typeof value === 'number' } /** * Create a cached version of a pure function... 阅读全文
posted @ 2017-04-05 17:14 刘浩2561179983 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: 今天看了vue.js源码 发现非常不错,想一边看一遍写博客和大家分享 阅读全文
posted @ 2017-04-05 16:50 刘浩2561179983 阅读(448) 评论(0) 推荐(0) 编辑