//配置项
var config = {
/**
* Option merge strategies (used in core/util/options)//选项合并策略
*/
optionMergeStrategies: Object.create(null), /**
* Whether to suppress warnings.//是否抑制警告
*/
silent: false, /**
* Show production mode//生产模式 tip message on boot?//提示信息引导
*/
productionTip: "development" !== 'production', /**
* Whether to enable devtools//是否启用开发者工具
*/
devtools: "development" !== 'production', /**
* Whether to record perf//是否记录性能
*/
performance: "development" !== 'production', /**
* Error handler for watcher errors//错误处理观察错误
*/
errorHandler: null, /**
* Ignore certain custom elements//忽略某些自定义元素
*/
ignoredElements: [], /**
* Custom user key aliases for v-on//自定义用户键别名
*/
keyCodes: Object.create(null), /**
* Check if a tag is reserved so that it cannot be registered as a//检查如果一个标签被保留所以它将不会被注册为一个组件
* component. This is platform-dependent and may be overwritten.//这是与平台相关的可能被覆盖
*/
isReservedTag: no, /**
* Check if a tag is an unknown element.检查一个标签是否是未知的元素
* Platform-dependent.//平台相关
*/
isUnknownElement: no, /**
* Get the namespace of an element//得到一个元素的命名空间
*/
getTagNamespace: noop, /**
* Parse the real tag name for the specific platform.//针对特殊的平台解析真正的标签名称
*/
parsePlatformTagName: identity, /**
* Check if an attribute must be bound using property, e.g. value//检查是否一个属性必须被限制用一个属性
* Platform-dependent.
*/
mustUseProp: no, /**
* List of asset types that a component can own.//组件能拥有的资产类型列表
*/
_assetTypes: [
'component',
'directive',
'filter'
], /**
* List of lifecycle hooks.//钩子的生命周期
*/
_lifecycleHooks: [
'beforeCreate',
'created',
'beforeMount',
'mounted',
'beforeUpdate',
'updated',
'beforeDestroy',
'destroyed',
'activated',
'deactivated'
], /**
* Max circular updates allowed in a scheduler flush cycle.最大循环更新允许在一个调度冲洗循环
*/
_maxUpdateCount: 100
};

vue.js源码学习分享(五)的更多相关文章

  1. vue.js源码学习分享(一)

    今天看了vue.js源码  发现非常不错,想一边看一遍写博客和大家分享 /** * Convert a value to a string that is actually rendered. *转换 ...

  2. vue.js源码学习分享(九)

    /* */ var arrayKeys = Object.getOwnPropertyNames(arrayMethods);//获取arrayMethods的属性名称 /** * By defaul ...

  3. vue.js源码学习分享(七)

    var _Set; /* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) { // use ...

  4. vue.js源码学习分享(六)

    /* */ /* globals MutationObserver *///全局变化观察者 // can we use __proto__?//我们能用__proto__吗? var hasProto ...

  5. vue.js源码学习分享(八)

    /* */ var uid$1 = 0; /** * A dep is an observable that can have multiple * directives subscribing() ...

  6. vue.js源码学习分享(四)

    /** * Generate a static keys string from compiler modules.//从编译器生成一个静态键字符串模块. */ function genStaticK ...

  7. vue.js源码学习分享(三)

    /** * Mix properties into target object.//把多个属性插入目标的对象 */ function extend (to, _from) { for (var key ...

  8. vue.js源码学习分享(二)

    /** * Check if value is primitive//检查该值是否是个原始值 */ function isPrimitive (value) { return typeof value ...

  9. Vue.js 源码学习笔记

    最近饶有兴致的又把最新版 Vue.js 的源码学习了一下,觉得真心不错,个人觉得 Vue.js 的代码非常之优雅而且精辟,作者本身可能无 (bu) 意 (xie) 提及这些.那么,就让我来吧:) 程序 ...

随机推荐

  1. 廖老师JavaScript教程高阶函数-sort用法

    先来学习一个新词:高阶函数 高阶函数英文叫Higher-order function.那么什么是高阶函数? JavaScript的函数其实都指向某个变量.既然变量可以指向函数,函数的参数能接收变量,那 ...

  2. mysql 编程

    一.存储函数 相当于php或者js中有返回值的函数 --完成一定“计算”后返回单个的数据值 定义: create function 函数名(parameter p1 value_type, param ...

  3. 初学Python02

    数据类型和变量: 1.整数  整数在Python中直接输入就好,没有特殊要求(正负整数皆可).由于计算机是二进制的,有时候会使用十六进制表示数字,0X+0-9或者a-f来表示. 2.浮点数   浮点数 ...

  4. LeetCode(44) Wildcard Matching

    题目 Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single characte ...

  5. 水题:HDU1716-排列2

    排列2 Problem Description Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数. Input 每组数据占一行,代 ...

  6. Linux优化总结

    1)netstat (*****)查看网络状态lntup或an 1.[listening|-l] 2.[--numeric|-n] 3.[--tcp|-t] 4.[--udp|-u] 5[--prog ...

  7. SPOJ COT2 Count on a tree II 树上莫队算法

    题意: 给出一棵\(n(n \leq 4 \times 10^4)\)个节点的树,每个节点上有个权值,和\(m(m \leq 10^5)\)个询问. 每次询问路径\(u \to v\)上有多少个权值不 ...

  8. 全网最详细python中socket套接字send与sendall的区别

    将数据发送到套接字. 套接字必须连接到远程套接字.  返回发送的字节数. 应用程序负责检查是否已发送所有数据; 如果仅传输了一些数据, 则应用程序需要尝试传递剩余数据.(需要用户自己完成) 将数据发送 ...

  9. 浅谈我所见的CSS命名风格

    在两年工作中,总结一下我所见的css命名风格. 1.单一class命名 .header { width: 500px; } .item { text-indent: 20%; } 优点:简单,渲染效率 ...

  10. Frequent values(ST)

    描述 You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to ...