vue1.0,2.0区别 生命周期

1.生命周期  删除 beforeCompile compiled ready,新增beforeMounted mounted beforeUpdate updated

2.for循环里取消了$index  track-by被替换为key(key作用是方便快速更新虚拟dom diff算法)

3.绑定原生html{{{}}}改为v-html

4.过渡动画  transition指令改为<transition name=“aa”></>标签

参考链接 https://www.imoox.com/article/14707

vue的生命周期 beforeCreate created beforeMounte mounted beforeUpdate updated beforeDestory Destoryed

删除了beforeCompile,compiled,ready,新增了beforeMount,mounted,beforUpdate,updated。
作者:
链接:https://www.imooc.com/article/14707
来源:慕课网
本文原创发布于慕课网 ,转载请注明出处,谢谢合作
beforeCompile,compiled,ready,新增了beforeMount,mounted,beforUpdate,updated
作者:
链接:https://www.imooc.com/article/14707
来源:慕课网
本文原创发布于慕课网 ,转载请注明出处,谢谢合作
beforeCompile,compiled,ready,新增了beforeMount,mounted,beforUpdate,updated
作者:
链接:https://www.imooc.com/article/14707
来源:慕课网
本文原创发布于慕课网 ,转载请注明出处,谢谢合作

猜你喜欢

转载自www.cnblogs.com/bais/p/9037223.html
今日推荐