vue基础实践:生命周期钩子函数

vue基础实践:生命周期钩子函数 el :'#app' 用来指定当前vm所关联的视图 el:'#app', 等价于template: '<h1>{{msg}}</h1>',//指定了template与 el:'#app'没有关系了javascript 生命周期函数(钩子函数)html beforeCreated 建立实例以前 created 建立实例成功 ,(通常在这里实现数据的异步请求)异步发送
相关文章
相关标签/搜索