小知识
- 通过
this._self 可以指向当前实例本身,赋值时不能使用this,因为this只是一个代理对象。
全局API
共11个,能想起来嘛?
选项/数据
选项/DOM
选项/生命周期
选项/资源
选项/组合
实例属性
共13个。
与dom相关的:8个
<blog-post> <h1 slot="header">About Me</h1> <p>Here's some page content, which will be included in vm.$slots.default, because it's not inside a named slot.</p> <p slot="footer">Copyright 2016 Evan You</p> <p>If I have some content down here, it will also be included in vm.$slots.default.</p>.</blog-post>
this.$slots.header // About Methis.$slots.default // 两个P的内容
options : 4个
其他: 1个
$isServer : 是否在 server 端。