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) 提及这些.那么,就让我来吧:) 程序 ...
随机推荐
- linux命令行调试邮件服务器
linux命令行调试邮件服务器 1. Linux客户端调试邮件过程 [root@mxtest ~]# telnet mail.xx.com 25 Trying 172.16.236.103... Co ...
- linux 使用wget下载https连接地址cannot verify github.com's certificate
使用linux的wget下载时候会出现网站没有证书警告的问题, 例如下载git时,可以使用wget https://github.com/git/git/archive/v2.3.0.zip --no ...
- cocos2dx for lua 加密图片
图片加密的方法有很多种,在cocos2dx中,经常会使用TexturePacker来加密图片,方法如下: 打开TexturePacker,点击Add Sprite添加图片,在output栏下的Text ...
- 【HIHOCODER 1142】 三分·三分求极值
描述 这一次我们就简单一点了,题目在此: 在直角坐标系中有一条抛物线y=ax^2+bx+c和一个点P(x,y),求点P到抛物线的最短距离d. 输入 第1行:5个整数a,b,c,x,y.前三个数构成抛物 ...
- 给vagrant中的precise64升级VBoxGuestAdditions
位置:/usr/share/virtualbox/VBoxGuestAdditions.iso 在host(ubuntu 12.04 64)中: 查看虚拟机的名字:jb@H38:~/vm/vagran ...
- Linux学习-RPM 软件管理程序: rpm
RPM 默认安装的路径 一般来说,RPM 类型的文件在安装的时候,会先去读取文件内记载的设定参数内容,然后将该数据用来比对 Linux 系统的环境,以找出是否有属性相依的软件尚未安装的问题. 若环境检 ...
- Oralce重做日志(Redo Log)
1.简介 Oracle引入重做日志的目的:数据库的恢复. Oracle相关进程:重做日志写进程(LGWR). 重做日志性质:联机日志文件,oracle服务器运行时需要管理它们. 相关数据字典:v$lo ...
- Html开发小结
html部分 1.html标签 标签不区分大小写. 如:<!doctype html>与<!DOCTYPE html > <div></div>与< ...
- Java EE - Servlet 3.0 和 Spring MVC
Table of Contents 前言 基于 Java 的配置 ServletContainerInitializer 动态配置 DispatcherServlet 和 ContextLoaderL ...
- LoadRunner web_set_sockets_option()--常用函数
web_set_sockets_option()--常用函数 设置sockets的选项. intweb_set_sockets_option(const char * option,const cha ...