提交 082fc544 编写于 作者: 杜庆泉's avatar 杜庆泉

console.log 适配number类型

上级 818aee76
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
this.testRet = "测试失败" this.testRet = "测试失败"
return; return;
} }
if(getLog(2023) != '{"subType":"number","type":"number","value":"2023"}'){
if(getLog(2023) != '{"subType":"number","type":"Int","value":"2023"}'){
this.testRet = "测试失败" this.testRet = "测试失败"
return; return;
} }
...@@ -40,7 +38,7 @@ ...@@ -40,7 +38,7 @@
// this.testRet = "测试失败" // this.testRet = "测试失败"
// return; // return;
// } // }
if(getLog(2023.002) != '{"subType":"number","type":"Double","value":"2023.002"}'){ if(getLog(2023.002 as number) != '{"subType":"number","type":"number","value":"2023.002"}'){
this.testRet = "测试失败" this.testRet = "测试失败"
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册