vue.js源码学习分享(五)
生活随笔
收集整理的這篇文章主要介紹了
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 };
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 };
?
轉載于:https://www.cnblogs.com/liuhao-web/p/6669938.html
總結
以上是生活随笔為你收集整理的vue.js源码学习分享(五)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab分段拟合程序,如何用matl
- 下一篇: mpvue 使用wxParse解析htm