更多操作
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
第4行: | 第4行: | ||
$("#"+id).fadeIn(time) | $("#"+id).fadeIn(time) | ||
} | } | ||
mw.loader.load( 'https://polyfill.io/v3/polyfill.min.js?features=es6' ); | |||
mw.loader.load( 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js' ); | |||
MathJax = { | |||
tex: { | |||
inlineMath: [['$', '$'], ['\\(', '\\)']], | |||
packages: { '[+]': ['mhchem'] } //加载化学插件 如果只是数学可以不用加 | |||
}, | |||
loader: { load: ['[tex]/mhchem'] }, | |||
svg: { | |||
fontCache: 'global' | |||
} | |||
}; |
2023年7月29日 (六) 17:00的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
//基本函数
function fadeIn(id,time){
$("#"+id).fadeIn(time)
}
mw.loader.load( 'https://polyfill.io/v3/polyfill.min.js?features=es6' );
mw.loader.load( 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js' );
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
packages: { '[+]': ['mhchem'] } //加载化学插件 如果只是数学可以不用加
},
loader: { load: ['[tex]/mhchem'] },
svg: {
fontCache: 'global'
}
};