vue.js源码学习分享(五)
//配置项
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源码学习分享(五)的更多相关文章
- vue.js源码学习分享(一)
今天看了vue.js源码 发现非常不错,想一边看一遍写博客和大家分享 /** * Convert a value to a string that is actually rendered. *转换 ...
- vue.js源码学习分享(九)
/* */ var arrayKeys = Object.getOwnPropertyNames(arrayMethods);//获取arrayMethods的属性名称 /** * By defaul ...
- vue.js源码学习分享(七)
var _Set; /* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) { // use ...
- vue.js源码学习分享(六)
/* */ /* globals MutationObserver *///全局变化观察者 // can we use __proto__?//我们能用__proto__吗? var hasProto ...
- vue.js源码学习分享(八)
/* */ var uid$1 = 0; /** * A dep is an observable that can have multiple * directives subscribing() ...
- vue.js源码学习分享(四)
/** * Generate a static keys string from compiler modules.//从编译器生成一个静态键字符串模块. */ function genStaticK ...
- vue.js源码学习分享(三)
/** * Mix properties into target object.//把多个属性插入目标的对象 */ function extend (to, _from) { for (var key ...
- vue.js源码学习分享(二)
/** * Check if value is primitive//检查该值是否是个原始值 */ function isPrimitive (value) { return typeof value ...
- Vue.js 源码学习笔记
最近饶有兴致的又把最新版 Vue.js 的源码学习了一下,觉得真心不错,个人觉得 Vue.js 的代码非常之优雅而且精辟,作者本身可能无 (bu) 意 (xie) 提及这些.那么,就让我来吧:) 程序 ...
随机推荐
- jQuery向界面输出时保留两位小数
通过JSTL下的<fmt:formatNumber>标签实现,具体实现代码如下: <%@ taglib uri="http://java.sun.com/jsp/jstl/ ...
- oracle中的树状查询
oracle中的树状查询 工作中经常会遇到将数据库中的数据以树的形式展现的需求.以下我们来看一下该需求在Oracle中如何实现. 首先我们需要有一个树形的表结构(当然有时候会出现表结构不是典型的树形结 ...
- 洛谷 P2735 电网
https://www.luogu.org/problemnew/show/P2735 定理什么的最讨厌了,匹克定理?不会,也不想学. 粉色的为电网,将图中的电网我们将他构造一个矩形,然后蓝色和绿色的 ...
- HashMap存储原理
1. HashMap概述 HashMap是基于哈希表的Map接口的非同步实现.此实现提供所有可选的映射操作,并允许使用null值和null键.此类不保证映射的顺序,特别是它不保证该顺序恒久不变. ...
- python 中 * 与**的使用
1.参数中使用如果是函数定义中参数前的*表示的是将调用时的多个参数放入元组中,**则表示将调用函数时的关键字参数放入一个字典中 如定义以下函数 def func(*args): print(args) ...
- IDEA入门学习笔记1:资料收集
IDEA2018软件下载 :https://mp.weixin.qq.com/s?__biz=MzIwMjE1MjMyMw==&mid=2650200056&idx=1&sn= ...
- python列表中的深浅copy
列表中的赋值和平常的赋值是不一样的,看下面的代码: In [1]: a = 1 In [2]: b = a In [3]: a Out[3]: 1 In [4]: b Out[4]: 1 In [5] ...
- ACM/ICPC 2018亚洲区预选赛北京赛站网络赛 A.Saving Tang Monk II(优先队列广搜)
#include<bits/stdc++.h> using namespace std; ; ; char G[maxN][maxN]; ]; int n, m, sx, sy, ex, ...
- POJ:3228-Gold Transportation(要求最小生成树最大边最小)
Gold Transportation Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 3079 Accepted: 1101 D ...
- UVa 11651 Krypton Number System DP + 矩阵快速幂
题意: 有一个\(base(2 \leq base \leq 6)\)进制系统,这里面的数都是整数,不含前导0,相邻两个数字不相同. 而且每个数字有一个得分\(score(1 \leq score \ ...