微信小程序视图层WXS_基础类库

时间:2018-07-05 19:40:26   收藏:0   阅读:310

微信小程序视图层WXS_小程序基础类库

console

console.log 方法用于在 console 窗口输出信息。它可以接受多个参数,将它们的结果连接起来输出。

微信小程序的Math

属性

以上属性的具体使用请参考 ES5 标准。

方法

以上方法的具体使用请参考 ES5 标准。

 

微信小程序的JSON

方法

示例代码:


console.log(undefined === JSON.stringify());
console.log(undefined === JSON.stringify(undefined));
console.log("null"===JSON.stringify(null));

console.log("111"===JSON.stringify(111));
console.log(‘"111"‘===JSON.stringify("111"));
console.log("true"===JSON.stringify(true));
console.log(undefined===JSON.stringify(function(){}));


console.log(undefined===JSON.parse(JSON.stringify()));
console.log(undefined===JSON.parse(JSON.stringify(undefined)));
console.log(null===JSON.parse(JSON.stringify(null)));

console.log(111===JSON.parse(JSON.stringify(111)));
console.log("111"===JSON.parse(JSON.stringify("111")));
console.log(true===JSON.parse(JSON.stringify(true)));

console.log(undefined===JSON.parse(JSON.stringify(function(){})));

 

微信小程序的Number

属性

以上属性的具体使用请参考 ES5 标准。

 

微信小程序的Global

微信小程序

属性

以上属性的具体使用请参考 ES5 标准。

方法

以上方法的具体使用请参考 ES5 标准。
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!