提交 a0b268ee 编写于 作者: 雪洛's avatar 雪洛

fix: 修复测试例错误

上级 4111f610
function test(x: string | number, y: string | boolean) {
// #ifdef APP-ANDROID || APP-IOS
if (x == y) {
// We can now call any 'string' method on 'x' or 'y'.
return x.toUpperCase() + y.toLowerCase();
}
// #endif
// #ifndef APP-ANDROID || APP-IOS
if (x === y) {
// We can now call any 'string' method on 'x' or 'y'.
return x.toUpperCase() + y.toLowerCase();
}
// #endif
return JSON.stringify([x, y]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册