跳到主要内容

📖JavaScript 参考手册

📖JavaScript 参考手册

JavaScript 数学对象详解

  1. JavaScript Math对象之sin()函数 Returns the sine of an angle
  2. JavaScript Math对象之cos()函数 Returns the cosine of an angle
  3. JavaScript Math对象之tan()函数 Returns the tangent of an angle
  4. JavaScript Math对象之abs()函数 Returns the absolute value of a number
  5. JavaScript Math对象之pow()函数 Returns a number raised to a certain power
  6. JavaScript Math对象之asin()函数 Returns the arcsine of a number in radians
  7. JavaScript Math对象之acos()函数 Returns the arccosine of a number in radians
  8. JavaScript Math对象之atan()函数 Returns the arctangent of a number in radians
  9. JavaScript Math对象之ceil()函数 Rounds a number up to the next largest integer
  10. JavaScript Math对象之floor()函数 Rounds down a number to the next smallest integer
  11. JavaScript Math对象之round()函数 Returns the number rounded to the nearest integer
  12. JavaScript Math对象之trunc()函数 Returns the integer part of a number
  13. JavaScript Math对象之max()函数 Returns the number with the highest value
  14. JavaScript Math对象之min()函数 Returns the number with the lowest value
  15. JavaScript Math对象之sqrt()函数 Returns the square root of a specified number
  16. JavaScript Math对象之sign()函数 Returns the sign of a number
  17. JavaScript Math对象之log()函数 Returns the natural logarithm of a number
  18. JavaScript Math对象之log2()函数 Returns the base 2 logarithm of a number
  19. JavaScript Math对象之log10()函数 Returns the base 10 logarithm of a number
  20. JavaScript Math对象之log1p()函数 Returns the natural logarithm of 1 plus number
  21. JavaScript Math对象之exp()函数 Returns e (Euler's number) raised to given power
  22. JavaScript Math对象之expm1()函数 Returns e raised to given power minus 1
  23. JavaScript Math对象之sinh()函数 Returns the hyperbolic sine of a number
  24. JavaScript Math对象之cosh()函数 Returns the hyperbolic cosine of a number
  25. JavaScript Math对象之tanh()函数 Returns the hyperbolic tangent of a number
  26. JavaScript Math对象之asinh()函数 Returns the hyperbolic arcsine of a number
  27. JavaScript Math对象之acosh()函数 Returns the hyperbolic arc-cosine of a number
  28. JavaScript Math对象之atanh()函数 Returns the hyperbolic arctangent of a number
  29. JavaScript Math对象之atan2()函数 Returns arctangent of the quotient of arguments
  30. JavaScript Math对象之fround()方法 Returns the 32-bit float representation of number
  31. JavaScript Math对象之hypot()方法 Returns sqrt of the sum of squares of arguments
  32. JavaScript Math对象之cbrt()函数 Returns the cube root of a specified number
  33. JavaScript Math对象之clz32()函数 Returns num of leading zeros in binary of a number
  34. JavaScript Math对象之random()函数 Returns pseudo-random float number between 0 and 1

JavaScript 字符串方法详解

  1. JavaScript 字符串的length属性 Returns the number of characters in a string
  2. JavaScript 字符串的replace()方法 replace a substring/pattern in the string
  3. JavaScript 字符串的indexOf()方法 Returns the first index of occurrence of a value
  4. JavaScript 字符串的lastIndexOf()方法 Returns the last index of occurrence of a value
  5. JavaScript 字符串的startsWith()方法 Checks if a string begins with a specified string
  6. JavaScript 字符串的endsWith()方法 Checks if a string ends with a specified string
  7. JavaScript 字符串的toUpperCase()方法 Returns uppercase of a string
  8. JavaScript 字符串的toLowerCase()方法 Returns lowercase representation of a string
  9. JavaScript 字符串的includes()方法 Checks if given string is found inside a string
  10. JavaScript字符串repeat()方法 Returns a string by repeating it given times
  11. JavaScript字符串charAt()方法 Returns character at a specified index in string
  12. JavaScript 字符串 charCodeAt() 方法 Returns Unicode of the character at given index
  13. JavaScript 字符串 fromCharCode() 方法 Returns a string from the given UTF-16 code units
  14. JavaScript 字符串 substring() 方法 Returns a specified part of the string
  15. JavaScript 字符串 padStart() 方法 Pads a string at the start to a given length
  16. JavaScript 字符串 padEnd() 方法 Pads a string at the end to a given length
  17. JavaScript 字符串 codePointAt() 方法 Returns the Unicode point value at given index
  18. JavaScript 字符串 fromCodePoint() 方法 Returns a string using the given code points
  19. JavaScript 字符串 match() 方法 Returns result of matching string with a regex
  20. JavaScript 字符串 matchAll() 方法 Returns iterator of results matching with a regex
  21. JavaScript 字符串 localeCompare() 方法 Compares two strings in the current locale
  22. JavaScript 字符串 search() 方法 Searches for specified value in the string
  23. JavaScript 字符串 replaceAll() 方法 Returns string by replacing all matching patterns
  24. JavaScript 字符串 concat() 方法 Concatenates the arguments to the calling string
  25. JavaScript 字符串 split() 方法 Returns the string divided into list of substring
  26. JavaScript 字符串 trim() 方法 Removes whitespace from both ends of a string
  27. JavaScript 字符串 slice() 方法 Extracts and returns a section of the string

JavaScript 数组方法

  1. JavaScript 数组 length 属性 Returns the number of elements in an array
  2. JavaScript 数组 reverse() 方法 Returns the array in reverse order
  3. JavaScript 数组 sort() 方法 Sorts the elements of an array in specific order
  4. JavaScript 数组 fill() 方法 Returns array by filling elements with given value
  5. JavaScript 数组 join() 方法 Concatenates the array elements to a string
  6. JavaScript 数组 toString() 方法 Returns the string representation of an array
  7. JavaScript 数组 pop() 方法 Removes and returns the last array element
  8. JavaScript 数组的 shift() 方法详解 Removes and returns the first array element
  9. JavaScript 数组的 push() 方法详解 Adds elements to end of array & returns its length
  10. JavaScript 数组的 unshift() 方法详解 Adds elements to start of array and returns length
  11. JavaScript 数组的 concat() 方法详解 Returns array by merging given value and/or arrays
  12. JavaScript 数组的 splice() 方法详解 Returns an array by changing its elements in place
  13. JavaScript 数组的 lastIndexOf() 方法详解 Returns the last index of occurrence of an element
  14. JavaScript 数组的 indexOf() 方法详解 Returns the first index of occurrence of element
  15. JavaScript 数组的 of() 方法详解 Creates a new Array instance from given arguments
  16. JavaScript 数组的 slice() 方法详解 Returns a shallow copy of a portion of an array
  17. JavaScript 数组的 findIndex() 方法详解 Returns index of element that satisfies condition
  18. JavaScript 数组的 find() 方法详解 Returns first element that satisfies a condition
  19. JavaScript 数组的 includes() 方法详解 Checks if a value exists in an array
  20. JavaScript 数组的 reduceRight() 方法详解 Reduces array to single value from right to left
  21. JavaScript 数组的 reduce() 方法详解 Reduces array to single value from left to right
  22. JavaScript 数组的 isArray() 方法详解 Checks if the given value is a JavaScript Array
  23. JavaScript 数组的 filter() 方法详解 Returns array by filtering elements on given test
  24. JavaScript 数组的 map() 方法详解 Returns array by mapping elements using given func
  25. JavaScript 数组的 forEach() 方法详解 Executes the given function on array elements
  26. JavaScript 数组的 some() 方法详解 Tests if any element passes given test function
  27. JavaScript 数组的 every() 方法详解 Tests if all elements pass the given test function
  28. JavaScript 数组的 entries() 方法详解 Returns iterator containing key/value pair array
  29. JavaScript 数组的 keys() 方法详解 Returns an iterator containing keys of array items
  30. JavaScript 数组的 values() 方法详解 Returns iterator containing values of array items
  31. Javascript 数组 from() 方法 Creates a new Array from array-like object
  32. Javascript 数组构造函数 Returns the constructor function for the array
  33. Javascript 数组 copyWithin() 方法 Copies and overwrites elements within the array
  34. JavaScript 数组 toLocaleString() 方法 Returns string representing the elements of array
  35. JavaScript 数组 flat() 方法 Flattens the nested array to given depth
  36. JavaScript 数组 flatMap() 方法 Returns new array by mapping and flattening array

JavaScript 对象

  1. JavaScript 对象 toLocaleString() 方法 Returns the string representation of Object
  2. JavaScript 对象 keys() 方法 Returns array of object's enumerable property name
  3. JavaScript 对象 values() 方法 Return array of object's enumerable property value
  4. JavaScript 对象 entries() 方法 Returns array of object's enumerable properties
  5. JavaScript 对象 toString() 方法 Returns a string representing the object
  6. JavaScript 对象 valueOf() 方法 Returns the primitive value of specified object
  7. JavaScript 对象 seal() 方法 Seals the given object
  8. JavaScript 对象 isSealed() 方法 Determines if an object is sealed
  9. Javascript 对象 setPrototypeOf() 方法 Sets prototype of object to another object or null
  10. JavaScript 对象 isPrototypeOf() 方法 Check if object exists in other objects prototype
  11. JavaScript 对象 propertyIsEnumerable() 方法 Checks if the specified property is enumerable
  12. JavaScript 对象 getPrototypeOf() 方法 Returns the prototype of the given object
  13. Javascript 对象 create() 方法 Creates new object from given object as prototype
  14. JavaScript 对象 assign() 方法 Copies all enumerable own properties to an object
  15. Javascript 对象 defineProperties() 方法 Defines properties on an object and returns object
  16. Javascript 对象 defineProperty() 方法 Defines property directly on object and return it
  17. JavaScript 对象 is() 方法 Checks if two values are the same value
  18. JavaScript 对象的 Object.freeze() 方法详解 Freezes and returns an object
  19. JavaScript 对象的 Object.isFrozen() 方法详解 Determines if an object is frozen
  20. JavaScript 对象的 Object.hasOwnProperty() 方法详解 Checks if object has a given property as its own
  21. JavaScript 对象的 Object.preventExtensions() 方法详解 Prevents new properties from being added to object
  22. JavaScript 对象的 Object.isExtensible() 方法详解 Determines if an object is extensible
  23. JavaScript 对象的 Object.fromEntries() 方法详解 Transforms list of key-value pairs into an object
  24. JavaScript 对象的 Object.getOwnPropertyDescriptor() 方法详解 Returns property descriptor of own property of obj
  25. JavaScript 对象的 Object.getOwnPropertyDescriptors() 方法详解 Returns all own property descriptors of an object
  26. JavaScript 对象的 Object.getOwnPropertyNames() 方法详解 Returns array of all properties found in an object
  27. JavaScript 对象的 Object.getOwnPropertySymbols() 方法详解 Returns array of all symbol properties in object

JavaScript 内置方法详解

  1. JavaScript 的 isFinite() 方法详解 Checks if the passed value is a finite number
  2. JavaScript 的 isNaN() 方法详解 Checks if a value is NaN or not
  3. JavaScript 的 parseInt() 方法详解 Parses string and returns integer of given radix
  4. JavaScript 的 parseFloat() 方法详解 Parses argument and returns floating-point number

JavaScript 函数详解

  1. JavaScript 函数的 toString() 方法详解 Returns source code of function as a string
  2. JavaScript 函数的 length 属性详解 Returns the number of parameters of a function
  3. JavaScript 函数的 name 属性详解 Returns the name of the given function
  4. JavaScript 函数的 apply() 方法详解 calls function with this value and array of args
  5. JavaScript 函数的 call() 方法详解 Calls a function with a given this value and args
  6. JavaScript 函数的 bind() 方法详解 Creates new function with given this value & args