初始化
小程序初始化
1.src文件目录
- app.vue
1 | //app.vue中不需要有template |
- main.js
1 | import Vue from 'vue' |
- app.json
1 | //后续创建pages/index/main.js文件 |
pages
index
- index.vue
1
2
3
4
5
6
7
8
9
10<template>
<div>
<p>index</p>
</div>
</template>
<script>
export default {};
</script>
<style scoped>
</style>- main.js
1
2
3
4
5import Vue from 'vue'
import Index from './index.vue'
const index = new Vue(Index)
index.$mount()
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 一叶凉夏!






