# visualfeast.com **Repository Path**: tuge7025/visualfeast.com ## Basic Information - **Project Name**: visualfeast.com - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-31 - **Last Updated**: 2022-02-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # visualfeast.com ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Run your tests ``` npm run test ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ## 生命周期 (1)beforeCreate() 钩子函数中不能引用data()和methods中的数据 (2)created() 函数中才可以使用data()和methods中的数据。 (3)beforeMount() 页面挂载之前,即编译好的模板仍在内存中,还没有渲染到页面,页面还是旧的。 (4)mounted() 页面已经挂载完成,即页面初始化完成,可以操作页面上的DOM节点了(由页面创建阶段进入页面运行阶段) (5)beforeUpdate() data数据变化但页面数据未更新,页面中的数据还是旧的。(选择性触发) (6)updated() 页面更新完成,数据是最新数据,完成data(model层)-->view(视图层)的转变。(选择性触发) (7)beforeDestroy() 页面销毁之前,页面上的data(),methods,filter均可使用,没有真正的销毁(由页面运行阶段进入销毁阶段) (8)destroyed() 页面真正销毁。