提交 78dd38eb 编写于 作者: H hdx

chore: 处理代码警告问题

上级 d9903c02
......@@ -11,7 +11,6 @@ export default {
const performance = uni.getPerformance()
const observer: PerformanceObserver = performance.createObserver((entryList: PerformanceObserverEntryList) => {
console.log('observer:entryList.getEntries()')
console.log(entryList.getEntries())
})
observer.observe({
......
<template>
<view></view>
<view>{{result}}</view>
</template>
<script>
export default {
data() {
return {
result: ''
}
},
methods: {
foo1() {
this.result = "foo1"
},
foo2(date1 : number) {
this.result = "foo2=" + date1
},
foo3(date1 : number, date2 : number) {
this.result = "foo3=" + date1 + " " + date2
},
foo4(callback : (() => void)) {
callback()
......
......@@ -30,7 +30,7 @@
<script>
let typeIndex = 0
const TypeList : Array<string> = ['A', 'B', 'C', 'D']
const TypeList = ['A', 'B', 'C', 'D']
export default {
data() {
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册