Concat () joins the element into the array join () converts all elements of the array into strings and joins together splice () inserts, deletes, replaces the array element push () adds the element to the end of the array pop () moves the last element of the divisor group shift () Move the first element of the divisor group Unshift () in the array header insert element slice () returns part of the array every () tests whether the assertion function is true for each array element some () tests if at least one array element can make the assertion function true foreach () Each element of an array specifies the function filter () that returns an array element that satisfies the assertion function indexof () finds a matching element in the array lastindexof () looks in the array map () from the elements of the array, Calculates a new array element, reduce () from the elements of the array, left to right, calculates a value reduceright () shrinks the array from right to left, calculates a value sort () sorts the array elements in the original arrays reverse () Reverses the order of the array elements in the original array tolocalestring () converts the array to a localized string ToString () converts the array to a string split () splits the string into a set of elements var date = new Date () The constructor Date.now () returns the current time, the number of milliseconds since the beginning of the era date.parse () resolves a string representation of a date and time, and the internal millisecond that returns the date represents get[utc]date () returns the date value in the month of a Date object. Local or World Time Get[utc]day () returns the date value of the week of the date object, local or World time Get[utc]fullyear () returns the year of the day, the full 4-digit format, local or World time get[utc]hours () Returns the value of the Date object, local or World time Get[utc]milliseconds () returns the millisecond of the Date object, and local Connaught World Time Get[utc]minutes () returns the minute value of the Date object, local or world time GET[UTC] Month () returns the monthly value of the Date object, local or World time Get[utc]seconds () returns the second value of the Date object, local or World time gettime () returns the internal millisecond representation of the date object, noting that the value is independent of the time zone, and therefore, There is not a single Getutctime method getTimezoneOffset () returns the local representation of the current date with UThe TC represents the number of minutes between differences. Note that the return value depends on the specified date when daylight saving time is valid getFullYear () returns the year value of a Date object GetMonth () returns the month value of a Date object getdate () returns the date value in the month of a Date object Getday () Returns the date value of a day of the week of a Date object gethours () returns the time-out value of a Date object getminutes () returns the Minutes of a Date object Getseconds () returns the value of a single Date object for a second () gettime () Returns a Date object in milliseconds form getmilliseconds () returns the millisecond value of a Date object tojson () serializes a Date object JSON, using Toisostring () decodeuri () Decodes a URI character decodeuricomponent () decodes a character in a URI component encodeURI () escapes a URI character encodeURIComponent () escapes the character in a URI component
JS Common methods