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) 提及这些.那么,就让我来吧:) 程序 ...
随机推荐
- SQL数据库中各种字段类型的说明
(1)char.varchar.text和nchar.nvarchar.ntext char和varchar的长度都在1到8000之间,它们的区别在于char是定长字符数据,而varchar是 ...
- CV做直方图的比较说明图形越相似性
#include "opencv/cv.hpp" #include "opencv2/objdetect/objdetect.hpp" #include &qu ...
- python入门:1-99所有数的和的等式
#!/usr/bin/env python # -*- coding:utf-8 -*- #1-99所有数的和的等式 #start(开始,译音:思达二测)sum(合计,译音:桑木)temp(临时雇员, ...
- ActiveXObject
只有IE浏览器才支持这个构造函数,可以用这个来判断,当前是否为IE浏览器 var isIE=!!window.ActiveXObject; 在IE的不同版本下,要创建XHR对象,也需要通过这个构造函数 ...
- LeetCode(306) Additive Number
题目 Additive number is a string whose digits can form additive sequence. A valid additive sequence sh ...
- LeetCode(134) Gas Station
题目 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. ...
- centos7 安装显卡驱动方法
方法一: 首先需要添加一个第三方的源ELRepo.这个源支持RED HAT系的Linux系统,主要是提供一些硬件的驱动程序.这个源的主页如下: http://elrepo.org/tiki/tiki- ...
- loadView、viewDidLoad及viewDidUnload的关系(转)
本文目录 一.loadView 二.viewDidLoad 三.viewDidUnload 四.三个方法的关系 标题中所说的3个方法,都是UIViewController的方法,跟UIViewCont ...
- POJ - 2250 Compromise (LCS打印序列)
题意:给你两个单词序列,求出他们的最长公共子序列. 多组数据输入,单词序列长度<=100,单词长度<=30 因为所有组成LCS的单词都是通过 a[i] == b[j] 更新的. 打印序列的 ...
- 思维题:UVa1334-Ancient Cipher
Ancient Cipher Ancient Roman empire had a strong government system with various departments, includi ...