在线手册

  • jsref obj math

    JavaScript Math Reference « Previous Next Reference » Math Object The Math object allows you to perform mathematical tasks. Math is not a constructor. All properties/methods of Math can be called by using Math as an ...

  • jsref obj number

    JavaScript Number Reference « Previous Next Reference » JavaScript Numbers JavaScript has only one type of number. Numbers can be written with, or without, decimals: Example var x = 3.14;     ...

  • jsref obj regexp

    JavaScript RegExp Reference « Previous Next Reference » RegExp Object A regular expression is an object that describes a pattern of characters. Regular expressions are used to perform pattern-matching and "search ...

  • jsref obj string

    JavaScript String Reference « Previous Next Reference » JavaScript Strings A JavaScript string stores a series of characters like "John Doe". A string can be any text inside double or single quotes: var ...

  • jsref replace

    JavaScript String replace() Method JavaScript String Reference Example Return a string where "Microsoft" is replaced with "W3Schools": var str = "Visit Microsoft!"; var res = str.replace("Microsoft", "W3Schools& ...

  • jsref search

    JavaScript String search() Method JavaScript String Reference Example Search for "W3Schools": var str = "Visit W3Schools!"; var n = str.search("W3Schools"); The result of n will be: var str="Visit W3Schools ...

  • jsref statements

    JavaScript Statements Reference « Previous Next Reference » JavaScript Statements In HTML, JavaScript statements are "instructions" to be "executed" by the web browser. This statement tells the ...

  • jsref type conversion

    JavaScript Type Conversion « Previous Next Reference » JavaScript Type Conversion Table The table below shows the result of converting different JavaScript values to Number, String, and Boolean: OriginalValue ...

  • jsref while

    JavaScript while Statement JavaScript Statements Reference Example Loop through a block of code as long as a variable (i) is less than 5: var text = "";var i = 0;while (i < 5) {    text += "<br& ...

  • met document addeventlistener

    HTML DOM addEventListener() Method Document Object Example Attach a click event to the document. When the user clicks anywhere in the document, output "Hello World" in a <p> element with id="demo": ...

推广服务(新)
最新文章
  • php curl大文件上传遇到502或504错误

    使用php的curlfile上传大文件到远端服务器,遇到502错误。原因可能是超时或者内存超出,需要修改nginx、php.ini和php-fpm.conf中的一些配置。修改php.ini(注意c...

  • HTML、JavaScript和GLSL编码规范

    HTML编码规范

    • 始终将文档类型声明为文档中的第一行:

  • WebGL 2D纹理坐标到3D顶点坐标的映射

    webgl纹理映射用来把图片贴到模型的材料表面,给模型添加丰富的细节。该方法的核心是把一张二维的图片映射到三维的坐标空间去,也就是为每一个3d顶点找到其相应...

  • WebXR基本概念和应用程序开发简介

    XR是VR,AR和MR的统称,VR,AR是从感官体验的角度来区分的,
    VR是用户借助外设输入输出(头戴、手柄、体感、运动感知等软硬件系统)来和纯虚拟场景的交互体验...

  • 网站SSL安全证书认证的基本过程和原理

    现在的网站基本上都迁移到了https协议上,https是http协议的安全升级版本。在原来的http协议下,如果有人截获了你发送给服务器的报文,就能获取里面的信息,比如...

  • 更多...