我在我的页面上实现了ajax ...这是我的代码
$.ajax({
url : '/sample_url/',
success : function(data)
{
$('#display').html(data)
//My suggestion mathjax code was here...
}
});
我把mathjax代码放在页面顶部....
<script type="text/javascript" src="/assets/js/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false,
tex2jax: { inlineMath: [['`','`'],['\\(','\\)']] },
"HTML-CSS": { scale: 120}
});
</script>
如何在每个Ajax成功事件中调用所有mathjax代码?我感到困惑,因为语言的类型是<script type="text/x-mathjax-config">
...