使用 AMD 主干的 flashcanvas 中的窗口加载劫持以及如何启用 toDataURL
所以..我有一个相当复杂的客户端js Web应用程序,使用AMD启用的主干和require.js,它还使用jit infovis lib,一切都很酷,但我想为旧的ie(7, 8)我已经走上了闪退的路线,我已经接受了,其余的功能在旧的ie中使用excanvas工作得很好,只是将画布保存到图像功能阻碍了我。 Flashcanvas 有这样的概念:使用 typeof FlasCanvas 检查其是否加载,以确保它在使用之前已定义,我认为很好,但我永远无法定义它。如果需要,我会发布一些代码,但我对答案类型非常感兴趣,这些答案可能指向使用 require.js 加载 flashcanvas 的不同方法或经验。请不要建议服务器端解决方案,我知道它以某种方式是可能的。
So.. I have a fairly complex client side js web app using AMD enabled backbone with require.js it also uses the jit infovis lib, everything is cool but I would like to enable some sort of fallback / polyfill for old ie (7,8) I have gone down the route of flash fallbacks which I am resigned to, the rest of the functionality works fine in old ie using excanvas it's only the save canvas to image functionality that is hampering me. Flashcanvas has this concept of checking if its loaded using typeof FlasCanvas to endsure it is defined before it is used , great i reckon but i can never get that to be defined. I will post some code if required but was really interested in the types of answeres that may point to a different approach or experience with loading flashcanvas with require.js for ie. Please don't suggest server side solutions , I know that Its possible somehow.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我修复了它,我正在使用的 excanvas 和 flashcanvas 的版本之间存在冲突,我现在单独委托给 flashcanvas 并已将 excanvas 从混合中删除。这里没什么可看的,人们继续前进......
OK I fixed it , there is a clash between the version of excanvas and flashcanvas that i am using , i an delegating to flashcanvas alone now and have taken excanvas out of the mix. nothing to see here folks move along...