开发者

Determine if app uses prototype js?

Im taking over an app that was started by someone else. I want to use jquery, but from what i read, the only way to use it replaces Prototype. Th开发者_运维问答is shouldnt be a problem, but im not sure if the project uses any protoype. Is there a plugin i can run or something that searches the project and checks compatibility without prototype?


I am not aware of any. The only way I can think of doing it would be to make the change and hunt for errors then translate them to JQuery. Most are not hard. They are usually just slight differences like addClass instead of addClassName


You can use both prototype and jquery, using jquery's NoConflict mode. You can also look at the jquery-rails plugin that removes prototype and reimplements the helpers using jquery.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜