我正在编写一个 Web 应用程序,它使用 2 个不同的 JavaScript 库,每个库具有不同的 Jquery 版本依赖性。如何指定要与每个库一起使用的 Jquery 版本?
最佳答案
参见:https://api.jquery.com/jquery.noconflict/
If for some reason two versions of jQuery are loaded (which is not recommended), calling $.noConflict( true ) from the second version will return the globally scoped jQuery variables to those of the first version.
关于javascript - 具有多个依赖项的多个 JavaScript 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29706738/