将jQuery与prototypejs一起使用时,有什么方法可以从全局范围而不是jquery中删除所有prototypejs变量 [英] While using jquery with prototypejs, is there any way we can remove all prototypejs variables from global scope instead of jquery

查看:75
本文介绍了将jQuery与prototypejs一起使用时,有什么方法可以从全局范围而不是jquery中删除所有prototypejs变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以使用jQuery.noConflict()解决2个库之间的冲突,但是我想将$用于jquery&还有一些其他的prototypejs.有什么办法吗?

I know we can use jQuery.noConflict() to resolve the conflict between the 2 libraries, but I want to use $ for jquery & something else for prototypejs. Is there any way to do this??

推荐答案

原型不提供类似于jQuery.noConflict()的任何选项.

Prototype doesn't provide any option similar to jQuery.noConflict(), as far as I know.

这篇关于将jQuery与prototypejs一起使用时,有什么方法可以从全局范围而不是jquery中删除所有prototypejs变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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