// index.jsimport Vue from 'vue'import App from './app.vue'new Vue({
el: '#app',
render: (h) => h(App),
});// app.vue<template>
<div id="app">
測試 </div></template><script>
export default { data: function () { return {}
}, components: {}, methods: {},
mounted() {}, computed: {}
}</script><style scoped lang="scss"></style>問題:app.vue的內(nèi)容不能正確渲染出來,為什么??index.js中用 el: '#app' 的方式掛載dom是否合法??
添加回答
舉報
0/150
提交
取消