提交 9cf25995 编写于 作者: H hdx

app.vue: 注释 performance

上级 65d33f92
...@@ -7,16 +7,17 @@ export default { ...@@ -7,16 +7,17 @@ export default {
// 自动化测试 // 自动化测试
setLifeCycleNum(state.lifeCycleNum + 1000) setLifeCycleNum(state.lifeCycleNum + 1000)
console.log('App Launch') console.log('App Launch')
const performance = uni.getPerformance() // 页面性能分析
const observer1: PerformanceObserver = performance.createObserver( // const performance = uni.getPerformance()
(entryList: PerformanceObserverEntryList) => { // const observer1: PerformanceObserver = performance.createObserver(
// console.log('observer1:entryList.getEntries()' +JSON.stringify(entryList.getEntries())) // (entryList: PerformanceObserverEntryList) => {
} // console.log('observer1:entryList.getEntries()' +JSON.stringify(entryList.getEntries()))
) // }
observer1.observe({ // )
entryTypes: ['render', 'navigation'], // observer1.observe({
} as PerformanceObserverOptions) // entryTypes: ['render', 'navigation'],
// } as PerformanceObserverOptions)
}, },
onShow: function () { onShow: function () {
// 自动化测试 // 自动化测试
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册