提交 edc25342 编写于 作者: Y yurj26

fix: 修复语法错误

上级 9bc6c789
......@@ -42,7 +42,7 @@
// let obj:{ name : string, age : number } = { name: 'John', age: 30 }
export default {
data() : object {
data() {
return {
num: 2023 as number,
str: '我是字符串' as string,
......
......@@ -25,7 +25,7 @@
this.num ++
},
getMultiply100Num() : number{
return num * 100
return this.num * 100
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册