使用方法/页面工具/工具扩展:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第2行: 第2行:
=== Basic setup ===
=== Basic setup ===
=== Extension JavaScript ===
=== Extension JavaScript ===
在配置文件里面添加'''$wgAllowUserJs''',之后在特殊页面(e.g.:[[http://kangkk.cn/index.php/用户:Kangkk/common.js|用户:Kangkk/common.js]])添加JS代码。
在配置文件里面添加'''$wgAllowUserJs''',之后在特殊页面(e.g.:[[http://kangkk.cn/index.php/用户:Kangkk/common.js | Kangkk/common.js]])添加JS代码。
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$wgAllowUserJs = true;
$wgAllowUserJs = true;