JavaScript 常用对象宝典

JavaScript 常用对象宝典

1. String 对象

  • 属性:length
  • 方法:charAt(), charCodeAt(), concat(), indexOf(), lastIndexOf(), slice(), substring(), substr(), toUpperCase(), toLowerCase(), split()

2. Array 对象

  • 属性:length
  • 方法:concat(), join(), push(), pop(), shift(), unshift(), sort(), reverse(), slice(), splice(), indexOf(), lastIndexOf()

3. Date 对象

  • 方法:getFullYear(), getMonth(), getDate(), getDay(), getHours(), getMinutes(), getSeconds(), getMilliseconds(), getTime()

4. Math 对象

  • 属性:PI
  • 方法:abs(), round(), ceil(), floor(), random(), max(), min(), pow()

5. RegExp 对象

  • 方法:test(), exec()

6. Global 对象

  • 属性:undefined, Infinity, NaN
  • 方法:parseInt(), parseFloat(), isNaN(), isFinite(), decodeURI(), encodeURI(), decodeURIComponent(), encodeURIComponent()

7. JSON 对象

  • 方法:parse(), stringify()

8. Object 对象

  • 方法:hasOwnProperty(), isPrototypeOf(), toString()
rar
js对象.rar 预估大小:16个文件
folder
js对象 文件夹
file
regex.txt 758B
file
Location.txt 2KB
file
Document .txt 2KB
file
Number.txt 1KB
file
Array.txt 1KB
file
window对象.txt 4KB
file
Math.txt 1KB
file
Navigator.txt 1KB
file
event 对象.txt 5KB
file
Screen.txt 1KB
file
document对象.txt 8KB
file
Date.txt 3KB
file
string对象.txt 2KB
file
boolean.txt 404B
file
function.txt 1KB
file
History.txt 774B
rar 文件大小:16.89KB