草庐IT

121011091

全部标签

Vue的data,components,methods,computed,mounted,activated,deactivated,beforeCreate,created的含义及用法

1、dataVue会递归将data的属性转换为getter/setter,从而让data的属性能够响应数据变化。对象必须是纯粹的对象(含有零个或多个的key/value对)data(){ return{ dataForm:{ xxx:‘’, xxx:数字//这里的数字会固定XXX的选项 }, xxx:[], xxx:false, xxx:数字, xxx:{} }}2、components调用其他组件 importAddOrUpdatefrom'./bareapointinfo-add-or-update' exportdefault{ components:{

Vue的data,components,methods,computed,mounted,activated,deactivated,beforeCreate,created的含义及用法

1、dataVue会递归将data的属性转换为getter/setter,从而让data的属性能够响应数据变化。对象必须是纯粹的对象(含有零个或多个的key/value对)data(){ return{ dataForm:{ xxx:‘’, xxx:数字//这里的数字会固定XXX的选项 }, xxx:[], xxx:false, xxx:数字, xxx:{} }}2、components调用其他组件 importAddOrUpdatefrom'./bareapointinfo-add-or-update' exportdefault{ components:{