问题是,我使用angularjs (包括加载部分),而mathquill框在部分中,如果我将
<script src="/MathQuill/mathquill.js"></script>在部分视图中,它工作正常,但我将收到警告:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.如果我把
<script src="/MathQuill/mathquill.js"></script>在主视图中,在加载部分后,mathquill根本无法工作,所以这是渲染问题吗?如何重新呈现部分视图?或者如果不是,我该怎么解决呢?
发布于 2015-01-29 20:02:51
在mathquill网站上找到:
请注意,对于文档就绪的HTML中未动态创建的元素,您需要在插入可见的HTML之后调用我们的jQuery插件:
$('<span>x^2</span>').appendTo('body').mathquill() or .mathquill('editable')https://stackoverflow.com/questions/28221114
复制相似问题