module.exports = {data: function(){ return { memberQrcodeState: false }},components: {memberQrcode},created: function(){},beforeRouteEnter: function(to, from, next) { // 在渲染該組件的對(duì)應(yīng)路由被 confirm 前調(diào)用 // 不!能!獲取組件實(shí)例 `this` // 因?yàn)楫?dāng)鉤子執(zhí)行前,組件實(shí)例還沒被創(chuàng)建 //$e.target.src= require("../imgs/test/232.jpg") next(); return true;},methods: { },beforeRouteLeave: function(to, from, next) { // 導(dǎo)航離開該組件的對(duì)應(yīng)路由時(shí)調(diào)用 // 可以訪問組件實(shí)例 `this` next();}};在這基礎(chǔ)上加一個(gè)頁(yè)面加載完成后執(zhí)行的函數(shù)!我是小白,第二天接觸vuejs,希望大神指點(diǎn)一二
vuejs頁(yè)面加載完成后執(zhí)行函數(shù)
慕哥9229398
2018-11-22 19:14:18