Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教前辈seajs在jquery多个版本下引用jquery的插件的方案 #1258

Closed
tickwudi opened this issue Jul 10, 2014 · 2 comments
Closed

Comments

@tickwudi
Copy link

好多插件是依赖jquery的特定版本的,用的jQuery全局对象,而项目有时候用的是jquery的其他版本,例如:项目默认用的jquery1.7.2,而插件用的jquery1.2.6 假如用1.7.2就不正常怎么处理呢?

@army8735
Copy link
Member

这个属于jquery插件的兼容问题……

@tickwudi
Copy link
Author

是的,现在已经通过seajs包装解决了!
define(function(require,exports,module){
//使用插件指定版本
var jQuery=require("jquery1.2.6");
//插件代码 一般用的 jQuery
module.exports=jQuery;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants