【2025年1月2日】关于腾讯云小程序平台更名为腾讯云超级应用服务的公告
控制台更新动态
Android SDK 更新动态
iOS SDK 更新动态
Flutter 更新动态
IDE 更新动态
基础库更新动态
console.log 方法用于在 console 窗口输出信息。它可以接受多个参数,将它们的结果连接起来输出。ELN10LN2LOG2ELOG10EPISQRT1_2SQRT2以上属性的具体使用请参考ES5标准。
absacosasinatanatan2ceilcosexpfloorlogmaxminpowrandomroundsinsqrttan以上属性的具体使用请参考ES5标准。
stringify(object): 将 object 对象转换为 JSON 字符串,并返回该字符串。parse(string): 将 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(){})));
MAX_VALUEMIN_VALUENEGATIVE_INFINITYPOSITIVE_INFINITY以上属性的具体使用请参考ES5标准。
parseUTC以上属性的具体使用请参考ES5标准。
NaNInfinityundefined以上属性的具体使用请参考ES5标准。
parseIntparseFloatisNaNisFinitedecodeURIdecodeURIComponentencodeURIencodeURIComponent以上方法的具体使用请参考ES5标准。
文档反馈