不知道如何在带有ajax的网站上使用Cufon.refresh()
我已经搜索过这个问题,但未能找到对我有用的答案。
在我的网站上,我有一个带有菜单和 div 的页面。单击菜单链接时,div 中的信息会发生变化(ajax)。但后来库丰不再在那个部门工作。我已阅读有关 Cufon.refresh 但无法使其工作。我应该使用哪个代码以及将其放在哪里?
我的链接如下所示:test
我已在此页面阅读有关 Cufon.refresh 的内容,但我不明白如何使用它: https://github.com/sorccu/cufon/wiki/API
I have searched on this matter but havent been able to find an answer that work for me.
On my website I have one page with a menu and a div. When clicking on a menu link the information in the div changes (ajax). But then Cufón stop working in that div. I have read about Cufon.refresh but can't get it to work. Which code should I use and where do I put it?
My links look like this:<a href="javascript:void(0);" onClick="getdata('kollektioner/kollektioner.html','myDiv');">test</a>
I have read about Cufon.refresh at this page but I don't understand how to use it: https://github.com/sorccu/cufon/wiki/API
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Cufon.refresh
对我来说也不起作用。解决方法是再次使用Cufon.replace
。Cufon.refresh
also does not work for me. A workaround is to useCufon.replace
again.根据您使用的 JS,您可以编辑触发函数,使其像下面一样工作,然后看看是否有效。本质上,它会在您更新该元素上的内容后刷新 Cufon 调用。
Based on the JS you are using, you can edit the trigger function to work like the below and see if that works. Essentially, it will refresh the Cufon call after you have updated the content on that element.