更多操作
无编辑摘要 |
无编辑摘要 |
||
第5行: | 第5行: | ||
} | } | ||
mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML' ); | mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML' ).done(function(){ | ||
MathJax.Hub.Config({ | |||
loader: {load: ['[tex]/mhchem']}, | |||
tex: {packages: {'[+]': ['mhchem']}}, | |||
tex2jax: | |||
{ | |||
inlineMath: [['$','$'], ['\\(','\\)']], | |||
ignoreClass: "math-editor", // put this here | |||
} | |||
}); | |||
}) |
2023年8月10日 (四) 13:54的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
//基本函数
function fadeIn(id,time){
$("#"+id).fadeIn(time)
}
mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML' ).done(function(){
MathJax.Hub.Config({
loader: {load: ['[tex]/mhchem']},
tex: {packages: {'[+]': ['mhchem']}},
tex2jax:
{
inlineMath: [['$','$'], ['\\(','\\)']],
ignoreClass: "math-editor", // put this here
}
});
})