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

查看:90
本文介绍了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天全站免登陆