Tutorials 参考 练习 Menu
Paid Courses

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 and training. 示例 might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by W3.CSS.