更多操作
无编辑摘要 |
无编辑摘要 |
||
第7行: | 第7行: | ||
mw.loader.load( 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js' ); | mw.loader.load( 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js' ); | ||
MathJax.Hub.Config({ | MathJax.Hub.Config({ | ||
loader: {load: ['[tex]/mhchem']}, | |||
tex: {packages: {'[+]': ['mhchem']}}, | |||
tex2jax: | tex2jax: | ||
{ | { |
2023年8月10日 (四) 13:34的版本
/* 这里的任何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.Hub.Config({
loader: {load: ['[tex]/mhchem']},
tex: {packages: {'[+]': ['mhchem']}},
tex2jax:
{
inlineMath: [['$','$'], ['\\(','\\)']],
ignoreClass: "math-editor", // put this here
}
});