12 WXS-基础类库

一,console

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

二,Math数学计算

abs
max
min
random

三,JSON

(1)stringify(object): 将 object 对象转换为 JSON 字符串,并返回该字符串
(2)parse(string): 将 JSON 字符串转化成对象,并返回该对象

猜你喜欢

转载自blog.csdn.net/wzjisking/article/details/78930710