更多操作
无编辑摘要 |
无编辑摘要 |
||
第4行: | 第4行: | ||
$("#"+id).fadeIn(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({ | // MathJax.Hub.Config({ | ||
// tex2jax: { | // tex2jax: { |
2023年8月10日 (四) 15:47的版本
/* 这里的任何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']},
// };