Site Notice

hello, world

中文变量名

From Project-EPB Commons
Revision as of 03:02, 24 January 2020 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)

<html> <button onclick="函数()">点击这里</button> <script> function 函数() { var 模态框 = ssi_modal,

   常用变量 = mw.config.get(['wgSiteName','wgUserName']),
   网站名称 = 常用变量.wgSiteName,
   用户名 = 常用变量.wgUserName;
 模态框.show({
   title: 网站名称,
   content: '你的用户名是: ' + 用户名
 });

} </script> </html>