摘要:
V-bind //一般绑定data中的数据,用于响应式更新数据 V-if //根据true或false来决定是否显示 V-on //监听Dom事件,比如点击 V-show //跟v-if类似,但html元素依然存在,相当于display:none V-html //插入html V-for //循环 阅读全文
posted @ 2022-04-15 17:44
RookieCoderAdu
阅读(38)
评论(0)
推荐(0)
摘要:
创建(Create) =》挂载(Mount)=》 更改 (Update) =》销毁 (Destory) 那么对应的 beforeCreate:此时 data和method没有初始化。没有赋值也没声明函数 Created:此时data和method才初始化。那么可以调用值和函数了 beforeMoun 阅读全文
posted @ 2022-04-15 16:45
RookieCoderAdu
阅读(66)
评论(0)
推荐(0)