打开/关闭菜单
Toggle preferences menu
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.js

MediaWiki界面页面
Cirno.9讨论 | 贡献2023年8月10日 (四) 15:47的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
//基本函数
function fadeIn(id,time){
            $("#"+id).fadeIn(time)
        }
MathJax = {
  tex: {
    inlineMath: [['$', '$'], ['\\(', '\\)']]
  }
};
mw.loader.getScript( 'https://cdn.bootcss.com/mathjax/3.0.5/es5/tex-mml-chtml.js' )

	// MathJax.Hub.Config({
 //   tex2jax: {
 //       inlineMath: [ ['$','$'], ["\\(","\\)"] ],
 //       displayMath: [ ['?','?'], ["\\[","\\]"] ]
	//     }
	// });
	// MathJax.Hub.Config = {
 //     tex: {
 //       inlineMath: [['$', '$']],
 //       packages: {'[+]': ['mhchem']}
 //     },
 //     tex2jax: {
 //     	inlineMath: [['$','$']],
 //     	packages: {'[+]': ['mhchem']}
 //     },
 //     loader: {load: ['[tex]/mhchem']},
 //   };