摘要: Title 222 111 222 333 222 111 222 333 222 111 222 333 ... 阅读全文
posted @ 2017-04-11 19:00 刘浩2561179983 阅读(245) 评论(0) 推荐(0) 编辑
摘要: /* */ var arrayKeys = Object.getOwnPropertyNames(arrayMethods);//获取arrayMethods的属性名称 /** * By default, when a reactive property is set, the new value is//默认情况下,当一个响应的属性被设置,新的值也转换成响应的。然而当经过向下支撑时,我... 阅读全文
posted @ 2017-04-06 11:53 刘浩2561179983 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: /* */ var uid$1 = 0; /** * A dep is an observable that can have multiple * directives subscribing() to it.//一个dep 是一个可观察到的,dep能有多样的订阅指示 */ var Dep = function Dep () { this.id = uid$1++; th... 阅读全文
posted @ 2017-04-06 10:49 刘浩2561179983 阅读(289) 评论(0) 推荐(0) 编辑
摘要: var _Set; /* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) { // use native Set when available.//当本地set有效时使用set _Set = Set; } else { // a non-standard Set polyfill that ... 阅读全文
posted @ 2017-04-06 10:18 刘浩2561179983 阅读(780) 评论(0) 推荐(0) 编辑
摘要: /* */ /* globals MutationObserver *///全局变化观察者 // can we use __proto__?//我们能用__proto__吗? var hasProto = '__proto__' in {}; // Browser environment sniffing//浏览器环境嗅探 var inBrowser = typeof window !==... 阅读全文
posted @ 2017-04-06 09:49 刘浩2561179983 阅读(720) 评论(0) 推荐(0) 编辑
摘要: //配置项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) 编辑