更多操作
无编辑摘要 |
无编辑摘要 |
||
第11行: | 第11行: | ||
packages: {'[+]': ['mhchem']} | packages: {'[+]': ['mhchem']} | ||
}, | }, | ||
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}, | |||
loader: {load: ['[tex]/mhchem']}, | loader: {load: ['[tex]/mhchem']}, | ||
}; | }; | ||
}) | }) |
2023年8月10日 (四) 14:03的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
//基本函数
function fadeIn(id,time){
$("#"+id).fadeIn(time)
}
mw.loader.getScript( 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js' ).then(function(){
MathJax.Hub.Config = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
packages: {'[+]': ['mhchem']}
},
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
loader: {load: ['[tex]/mhchem']},
};
})