javascript手冊-l[7]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 longj 的 blog

riptall/ref_s-s.htm#sqrt2_property" tppabs="http://www.nease.net/~jim/ref_s-s.htm#sqrt2_property">sqrt2 properties


ln10 property

the natural logarithm of ten, approximately 2.302.

语法

math.ln10

property of

math

描述

because ln10 is a constant, it is a read-only property of math.

例子

the following example displays the natural log of 10:

document.write("the natural log of 10 is " + math.ln10)

相关

  • e, ln2, log2e, log10e, pi, sqrt1_2, sqrt2 properties

    location object

    contains information on the current url.

    语法

    to use a location object:

    [windowreference.]location[.propertyname]
    
    windowreference is a variable windowvar from a window definition (see window object), or one of the synonyms top or parent.
    propertyname is one of the properties listed below. omitting the property name is equivalent to specifying the href property (the complete url).

    property of

  • window

    描述

    the location object represents a complete url. each property of the location object represents a different portion of the url.

    the following diagram of a url shows the relationships between the location properties:

    protocol//hostname:port pathname search hash

    protocol represents the beginning of the url, up to and including the first colon.
    hostname represents the host and domain name, or ip address, of a network host.
    port represents the communications port that the server uses for communications.
    pathname represents the url-path portion of the url.
    search represents any query information in the url, beginning with a question mark.
    hash represents an anchor name fragment in the url, beginning with a hash mark (#).

    see the properties (listed below) for details about the different parts of the url, or the href property for 例子.

    the location object has two other properties not shown in the diagram above:

    href represents a complete url.

  • 本文关键:javascript
      相关方案
    Google
     

    本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

    go top