新聞中心
console
console.log 方法用于在 console 窗口輸出信息。它可以接受多個參數(shù),將它們的結(jié)果連接起來輸出。

十余年的白云鄂網(wǎng)站建設(shè)經(jīng)驗(yàn),針對設(shè)計、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時及時工作處理。成都營銷網(wǎng)站建設(shè)的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動調(diào)整白云鄂建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計,從而大程度地提升瀏覽體驗(yàn)。成都創(chuàng)新互聯(lián)公司從事“白云鄂網(wǎng)站設(shè)計”,“白云鄂網(wǎng)站推廣”以來,每個客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。
Math
屬性
- E
- LN10
- LN2
- LOG2E
- LOG10E
- PI
- SQRT1_2
- SQRT2
以上屬性的具體使用請參考 ES5 標(biāo)準(zhǔn)。
方法
- abs
- acos
- asin
- atan
- atan2
- ceil
- cos
- exp
- floor
- log
- max
- min
- pow
- random
- round
- sin
- sqrt
- tan
以上方法的具體使用請參考 ES5 標(biāo)準(zhǔn)。
JSON
方法
- stringify(object): 將 object 對象轉(zhuǎn)換為 JSON 字符串,并返回該字符串。
- parse(string): 將 JSON 字符串轉(zhuǎn)化成對象,并返回該對象。
示例代碼:
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
屬性
- MAX_VALUE
- MIN_VALUE
- NEGATIVE_INFINITY
- POSITIVE_INFINITY
以上屬性的具體使用請參考 ES5 標(biāo)準(zhǔn)。
Date
屬性
- parse
- UTC
- now
以上屬性的具體使用請參考 ES5 標(biāo)準(zhǔn)。
Global
屬性
- NaN
- Infinity
- undefined
以上屬性的具體使用請參考 ES5 標(biāo)準(zhǔn)。
方法
- parseInt
- parseFloat
- isNaN
- isFinite
- decodeURI
- decodeURIComponent
- encodeURI
- encodeURIComponent
以上方法的具體使用請參考 ES5 標(biāo)準(zhǔn)。
文章名稱:創(chuàng)新互聯(lián)小程序教程:微信小程序基礎(chǔ)類庫
網(wǎng)頁路徑:http://www.5511xx.com/article/dhgjchc.html


咨詢
建站咨詢
