App.vue 727 字节
Newer Older
Y
init  
yurj26 已提交
1
<script>
H
hdx 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
  export default {
    onLaunch: function() {
      console.log('App Launch')

      // const performance: Performance = uni.getPerformance()
      // const observer1: PerformanceObserver = performance.createObserver((entryList: PerformanceObserverEntryList) => {
      //   console.log("observer1:entryList.getEntries()" + JSON.stringify(entryList.getEntries()))
      // })
      // observer1.observe({ entryTypes: ['render', 'navigation'] } as PerformanceObserverOptions)
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
Y
init  
yurj26 已提交
19 20 21
</script>

<style>
H
hdx 已提交
22 23 24
  /*每个页面公共css */
  @import './common/uni.css';
</style>