在线手册

  • jsref regexp exec

    ... it returns null Technical Details JavaScript Version: 1.2 More Examples Example Do a global search, and test for "Hello" and "W3Schools" in a string: // The string:var str = "Hello ...

  • jsref throw

    ... lt;input id="demo" type="text"><button type="button" onclick="myFunction()">Test Input</button><p id="message"></p> <script>function myFunction() {    ...

  • jsref try catch

    ... lt;input id="demo" type="text"><button type="button" onclick="myFunction()">Test Input</button><p id="message"></p> <script>function myFunction() {    ...

  • met audio addtexttrack

    ... x = document.getElementById("myAudio");var y = x.addTextTrack("caption"); y.addCue(new TextTrackCue("Test text", 01.000, 04.000,"","","",true)); Try it yourself » Definition ...

  • met audio canplaytype

    ... (type) Parameter Values Value Description type Specifies the audio type (and optional codecs) to test support for. Common values: audio/mpeg audio/ogg audio/mp4 Common values, including codecs ...

  • met document getelementsbyclassname

    ... elements you want to get. To search for multiple class names, separate them with spaces, like "test demo". Technical Details DOM Version: Core Level 1 Document Object Return Value: A NodeList object, representing ...

  • met video addtexttrack

    ... x = document.getElementById("myVideo");var y = x.addTextTrack("caption"); y.addCue(new TextTrackCue("Test text", 01.000, 04.000,"","","",true)); Try it yourself » Definition ...

  • met video canplaytype

    ... (type) Parameter Values Value Description type Specifies the video type (and optional codecs) to test support for. Common values: video/ogg video/mp4 video/webm Common values, including codecs ...

  • prop element classlist

    ... ) {    alert(x.classList.contains("mystyle"));} else {    alert(/\bmystyle/g.test(x.className)); // For IE9 and earlier} Try it yourself » Fallback Example: toggle A cross-browser solution ...

  • prop loc hash

    ... hash Property Location Object Example Return the anchor part of a URL. Assume that the current URL is //www.example.com/test.htm#part2: var x = location.hash; The result of x will be: #part2 More "Try it Yourself" examples below ...

推广服务(新)
最新文章