THE WORLD'S LARGEST WEB DEVELOPER SITE

W3.JS 参考


Complete W3.JS API 参考

Function Description Example
w3.hide Hides HTML elements Try it
w3.show Shows HTML elements Try it
w3.toggleShow Toggles between hiding and showing HTML elements Try it
w3.toggleClass Toggles the class of HTML elements Try it
w3.addClass Adds one or multiple classes to HTML elements Try it
w3.addStyle Adds style to HTML elements Try it
w3.removeClass Removes one or multiple classes from HTML elements Try it
w3.filterHTML Filters the display of HTML elements Try it
w3.sortHTML Sorts the display of HTML elements Try it
w3.slideshow Make HTML elements display as a slideshow Try it
w3.displayObject Displays JavaScript objects in HTML Try it
w3.includeHTML Displays HTML in HTML Try it
w3.getHttpObject Reads JSON data from a server Try it
w3.getHttpData Reads data from a server  

Complete W3.JS Attribute 参考

Attribute Description Example
{{ }} Defines where to display data Try it
w3-repeat Defines where to repeat data Try it
w3-include-HTML Defines where to include HTML Try it



W3Schools is optimized for learning, testing, and training. 示例 might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2020 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.

W3Schools.com