vue.js源码学习分享(五)
2024-08-25 16:42:08
//配置项
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
};
最新文章
- Maven命令行使用:mvn clean install(安装)
- IOS_改变UITextField placeHolder颜色、字体
- 14. Launch an instance
- 2016年11月17日 星期四 --出埃及记 Exodus 20:8
- HADOOP 2架构图
- 在Visual Studio 2010/2012中 找不到创建WebService的项目模板
- 使用另一种方式实现js中Function的调用(call/apply/bind)
- webservice 发布到外网的时候
- java中this关键字和static关键字和super关键字的用法
- linux 实时同步inotify
- 【mongodb系统学习之十】mongodb查询(三)
- Jersey+mybatis实现web项目第一篇
- Django---手动编写视图
- Selenium常见问题
- 腾讯云播放器更新——TCplayer
- git 配置别名
- 如何理解<;base href=";<;%=basePath%>;";
- redis-集群创建脚本
- nodeJS + webStrome
- MySQL多个相同结构的表查询并把结果合并放在一起的语句(union all)