JavaScript的方法

 

以下的一些"方法"可用在JavaScript:
  • abs
  • acos
  • alert
  • anchor
  • asin
  • assign
  • atan
  • back
  • big
  • blink
  • blur
  • bold
  • ceil
  • charAt
  • clear
  • clearTimeout
  • click
  • close
  • confirm
  • cos
  • eval
  • exp
  • fixed
  • floor
  • focus
  • fontcolor
  • fontsize
  • forward
  • getDate
  • getDay
  • getHours
  • getMinutes
  • getMonth
  • getSeconds
  • getTime
  • getTimeZoneoffset
  • getYear
  • go
  • indexOf
  • italics
  • lastIndexOf
  • link
  • log
  • max
  • min
  • open
  • parse
  • pow
  • prompt
  • random
  • round
  • select
  • setDate
  • setHours
  • setMinutes
  • setMonth
  • setSeconds
  • setTimeout
  • setTime
  • setYear
  • sin
  • small
  • sqrt
  • strike
  • sub
  • submit
  • substring
  • sup
  • tan
  • toGMTString
  • toLocaleString
  • toLowerCase
  • toString
  • toUpperCase
  • UTC
  • write
  • writeln

  • abs method

    Returns the absolute value of its argument.

    Syntax

    abs(arg)

    Applies to

    Math

    Examples

    xxx Examples to be supplied.


    acos method

    Returns the arc cosine (in radians) of its argument.

    Syntax

    acos(arg)

    Applies to

    Math

    Examples

    xxx Examples to be supplied.

    See also