created
组件第一次被 render 的时候调用,此时 script 和 image 还没有加载
- 参数:无
- 返回值:无
- 用法:
return class item extends Base {constructor(dom, config) {}created() {}};
mounted
组件被挂载到页面上时被调用
- 参数:无
返回值:无
return class item extends Base { constructor(dom, config) {} mounted() { } };updated
组件被更新的时候调用
参数:无
返回值:无
return class item extends Base { constructor(dom, config) {} updated() { } };destroy
组件被销毁时调用
参数:无
- 返回值:无
return class item extends Base { constructor(dom, config) {} destroy() { } };
