We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue 技术内幕
http://hcysun.me/vue-design/art/1start-learn.html
Vue.prototype
window.performance
perf.mark / perf.measure / perf.clearMarks / perf.clearMeasures
normalize
对是否支持 Proxy 的判断
const hasProxy = typeof Proxy !== 'undefined' && Proxy.toString().match(/native code/)
通过 Proxy 拦截属性的访问等
通过 with 指定上下文环境为 vm._renderProxy,而 _renderProxy 已经通过 Proxy 拦截,可以在开发阶段做各种提示
vm._renderProxy
_renderProxy
observe
data
__ob__
Object.getOwnPropertyDescriptor(obj, key)
dep
NaN === NaN // false
NaN
value !== value
push pop shift unshift reverse sort splice
Vue.set
Vue.delete
vm.$set
vm.$delete
The text was updated successfully, but these errors were encountered:
No branches or pull requests
http://hcysun.me/vue-design/art/1start-learn.html
了解 Vue 这个项目
Vue 构造函数
Vue.prototype
以一个例子为线索
window.performance
实现的。perf.mark / perf.measure / perf.clearMarks / perf.clearMeasures
Vue 选项的规范化
normalize
方法统一形态Vue 选项的合并(没有看完)
Vue 的初始化之开篇
对是否支持 Proxy 的判断
通过 Proxy 拦截属性的访问等
通过 with 指定上下文环境为
vm._renderProxy
,而_renderProxy
已经通过 Proxy 拦截,可以在开发阶段做各种提示揭开数据响应系统的面纱
observe
函数是data
转换成响应式数据的核心入口__ob__
Object.getOwnPropertyDescriptor(obj, key)
获取对象属性的描述符dep
筐NaN === NaN // false
判断是否是NaN
的方法:value !== value
push pop shift unshift reverse sort splice
Vue.set
和Vue.delete
,实例也有vm.$set
、vm.$delete
是其别名The text was updated successfully, but these errors were encountered: