提交 7eeb6285 编写于 作者: H hdx

call-easy-method-uni-modules: 语法警告,将传递的参数显示到界面上,便于观察是否生效

上级 e884bb5c
<template>
<view></view>
<view>{{result}}</view>
</template>
<script>
export default {
data() {
return {
result: ''
}
},
methods: {
foo1() {
this.result = "foo1"
},
foo2(date1 : number) {
foo2(date1: number) {
this.result = "foo2=" + date1
},
foo3(date1 : number, date2 : number) {
foo3(date1: number, date2: number) {
this.result = "foo3=" + date1 + " " + date2
},
foo4(callback : (() => void)) {
foo4(callback: (() => void)) {
callback()
},
foo5(text1 : string) : any | null {
foo5(text1: string): any | null {
return text1
}
}
}
</script>
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册