分类:JavaScript片段
如何使用
你可以在资源加载器模块中使用这些片段。
这包括由核心生成的(例如从wiki页面生成的site
和user
模块)和扩展中的。
参见手册:界面/JavaScript 以了解可以将这些代码片段加入你的网站的地方。
大多数片段假定是在文档准备好后执行的:对于这些情况,请确保您的代码中有一个文档就绪的包装器。 如果您还没有,请使用下面的内容:
$( function () {
// Paste snippet here.
// Paste as many as you like, only one "$( function () { ... } );" wrapper is needed!
} );
Subcategories
This category has only the following subcategory.
The number of included categories (C), pages (P) and files (F) is stated in brackets.