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
描述
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)
相关
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
描述
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.