邮件订阅
5ucms仿站,javascript手冊-a
作者: 来源: 日期:2015/9/3 23:23:06 浏览量:46(滞后) 人气:LOADING...(实时) 【

5ucms仿站,javascript手冊-a

abs method

Returns the absolute value of a number.

语法

Math.abs(number)

number is any numeric expressi NAME="absEntry"><P>The absolute value is:<INPUT TYPE="text" NAME="result"><P><INPUT TYPE="butt ></FORM>


acos method

Returns the arc cosine (in radians) of a number.

语法

Math.acos(number)

number is a numeric expressi NAME="userName" >

See also

  • c

    The following example sets the color of active links to aqua using a hexadecimal triplet:

    document.alinkColor="00FFFF"

    See also

  • bgColor, fgColor, linkColor, and vlinkColor properties

    anchor method

    Creates an htm anchor that is used as a hypertext target.

    语法

    text.anchor(nameAttribute)

    text is any string or a property of an existing object.
    nameAttribute is any string or a property of an existing object.

    用法

    string

    描述

    Use the anchor method with the write or writeln methods to programatically create and display an anchor in a document. Create the anchor with the anchor method, then call write or writeln to display the anchor in a document.

    In the 语法, the text string represents the literal text that you want the user to see. The nameAttribute string represents the NAME attribute of the <A> tag.

    Anchors created with the anchor method become elements in the anchors array. See the anchor object for informati msgWindow=window.open("","displayWindow") msgWindow.document.writeln(myString.anchor("c [TARGET="windowName"]> anchorText</A>HREF=http://www.dedecms.com/web-art/htmlbase/Javascript/20020827/locati specifies a tag that becomes an available hypertext target within the current document.
    TARGET="windowName" specifies the window that the link is loaded into. This attribute is meaningful has no effect.

    Properties

    The anchors object has no properties. The anchors array has the following properties:

  • length reflects the number of named anchors in a document

    Methods

  • N else newline="\n" textareaObject.value="http://www.dedecms.com/web-art/htmlbase/Javascript/20020827/line 1" + newline + "line 2" + newline + "line 3"}

    See also

  • appName, appCodeName, userAgent properties

    asin method

    Returns the arc sine (in radians) of a number.

    语法

    Math.asin(number)

    number is a numeric expression between -1 and 1, or a property of an existing object.

    用法

    Math

    描述

    The asin method returns a numeric value between -pi/2 and pi/2 radians. If the value of number is outside the suggested range, the return value is always 0.

    例子

    // Displays the value 1.570796326794897 (pi/2)document.write("The arc sine of 1 is " + Math.asin(1))// Displays the value -1.570796326794897 (-pi/2)document.write("<P>The arc sine of -1 is " + Math.asin(-1))// Displays the value 0 because the argument is out of rangedocument.write("<P>The arc sine of 2 is " + Math.asin(2))

    See also

  • acos, atan, cos, sin, tan methods

    atan method

    Returns the arc tangent (in radians) of a number.

    语法

    Math.atan(number)

    number is either a numeric expression or a property of an existing object, representing the tangent of an angle.

    用法

    Math

    描述

    The atan method returns a numeric value between -pi/2 and pi/2 radians.

    例子

    // Displays the value 0.7853981633974483document.write("The arc tangent of 1 is " + Math.atan(1))// Displays the value -0.7853981633974483document.write("<P>The arc tangent of -1 is " + Math.atan(-1))// Displays the value 0.4636476090008061document.write("<P>The arc tangent of .5 is " + Math.atan(.5))

    See also

  • acos, asin, cos, sin, tan methods

  • 无忧站长学院,建站自然无忧www.5ucms.org

    本站推荐: 5ucms模板下载 5ucms插件下载 仿站联系Q3876307       [复制给好友] [打印] [关闭] [返回] [顶部]
    上一篇:5ucms仿站,JavaScript 实现动态增加、删除表单域
    下一篇:5ucms培训,javascript手冊-b
    本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。
    5ucms仿站,javascript手冊-a的关键词:
    评论信息
    相关分类
    本周热门
    本月热门
    关于我们 - 版权/免责 申明 - 建站服务 - 网站地图 - 稿件投递 - 联系我们 - 5ucms
    Copyright © 2008-2015 www.5ucms.org