Jqmath - 页面加载后应用 [英] Jqmath - apply after page load

查看:24
本文介绍了Jqmath - 页面加载后应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在初始页面加载后应用 jqMath 脚本.

I would like to apply the jqMath script after the initial page load.

我遇到的问题是我进行了 ajax 调用它检索一些 jqMath 语法并将其加载到主页的 div 部分.

The problem I have is that I make an ajax call which retrieves some jqMath syntax and loads it into a div section of the main page.

但是,目前还没有解析语法.如何确保在 ajax 调用返回时可以触发 jqMath并应用于适当的 div 部分?

However the syntax is not currently being parsed. How do I ensure jqMath can be triggered when the ajax call returns and applied to the appropriate div section ?

推荐答案

加载myDiv后调用M.parseMath(myDiv);.

例如,jqMath 在初始页面加载后自动执行 M.parseMath(document.body);.

For example, jqMath automatically does M.parseMath(document.body); after the initial page load.

这篇关于Jqmath - 页面加载后应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆