30秒学会 JavaScript 片段 – currentURL
Returns the current URL. Use window.location.href to get the current URL.
Returns the current URL. Use window.location.href to get the current URL.
Returns a new array with $n elements removed from the left. Use array_slice() to remove $n elements ...
Check if a date is the same as another date. Use Date.prototype.toISOString() and strict equality ch...
Returns true if both arguments are true, false otherwise. Use the logical and (&&) operator ...
Converts an angle from degrees to radians. Use Math.PI and the degree to radian formula to convert t...
Changes the styling of text selection. ::selection defines a pseudo selector on an element to style ...
Renders a list of elements from an array of primitives. Use the value of the isOrdered prop to condi...
Decapitalizes the first letter of a string. Use strings.ToLower() to decapitalize the first letter o...
Checks if the given number falls within the given range. Use math.Min() and math.Max() to determine ...
Returns the average of two or more numbers. Use Array.prototype.reduce() to add each value to an acc...