主要代碼如下,不知道為什么ready()里面的完全不執(zhí)行,求安心人幫助???//main.jsimport Vue from 'vue'import App from './App'import router from '.
/router'import VueResource from 'vue-resource'import store from './vuex/store'Vue.use(VueResource)const app = new Vue({
router,
store, render: h => h(App), el: '#app'})//App.vue<script>
export default {
ready() { console.log('444');
}
}</script>
Vue中ready()沒起作用
互換的青春
2018-09-14 13:21:02