如何将FancyUpload(与mootools一起)与prototype.js一起使用? [英] How can I use FancyUpload (with mootools) side by side with prototype.js?

查看:153
本文介绍了如何将FancyUpload(与mootools一起)与prototype.js一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在使用原型和脚本的网站.我的网站只有一页,我想使用Digitarald的FancyUploader(我还没有找到其他类似的优雅产品,并且可以选择多个文件).是否可以在同一页面上使用两者?如果是这样,我该怎么办?

I have a site that I am using prototype and scriptaculous on. One one page of my site, I would like to use Digitarald's FancyUploader (I have not found anything else that is as elegant, and offers multiple file selection). Is it possible to use the two on the same page? If so, how would I do it?

推荐答案

无法使用 prototype 运行 Mootools 脚本.

Mootools 提供了一种美元安全模式,但该模式仅与提供$()功能的框架兼容.

While Mootools provide a dollar-safe mode, that mode only provided compatibility with frameworks that provides a $() function.

Mootools prototype 不兼容的原因是它们都使用自己的方法扩展了本机JavaScript本机.不幸的是,没有任何方法可以覆盖这种行为.

The reason why Mootools and prototype are incompatible is that they both extend native JavaScript natives with their own methods. Unfortunately, there is no way of overriding this behavior.

SWFUpload 是一种替代解决方案,它与几乎所有JavaScript框架兼容.它在功能上几乎等效于FancyUpload.您可能要考虑将其作为替代解决方案.如果不是,则必须在 Mootools prototype 之间进行选择.

SWFUpload is an alternative solution which is compatible with pretty much all JavaScript frameworks. It is pretty much functionally equivalent to FancyUpload. You might want to consider it as an alternative solution. If not, you'll have to make a choice between Mootools and prototype.

这篇关于如何将FancyUpload(与mootools一起)与prototype.js一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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