提交 03a3982d 编写于 作者: 杜庆泉's avatar 杜庆泉

增加 UTSJSONObject 获取不存在属性时的判断

上级 f1176b2d
......@@ -89,6 +89,16 @@ export function testUTSJSONObject() : Result {
// #endif
})
test('get-no-exist-value', () => {
// #ifdef APP-ANDROID
let test = {
qq:[11,22]
}
expect(test.getNumber("qq[2]")).toEqual(null);
expect(test.getNumber("qq[2]",999)).toEqual(999);
// #endif
})
test('setvalue-after-get', () => {
// #ifdef APP-ANDROID
// #TEST UTSJSONObject.getJSON,UTSJSONObject.getArray
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册