main.js文件
import {
createApp
} from "vue";
import App from "./App.vue";
const app = createApp(App);
app.mount('#app')
App.vue文件
<script>
export default {
name:'App',
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
},
}
</script>
<style>
/每个页面公共css /
</style>
0 个回复