我目前正在使用客户提供给我们的 html 模板对我们的应用程序进行皮肤处理。不幸的是,他们的模板中有一些元素需要使用 mootools。我不熟悉这个库,更喜欢使用 jQuery。有什么方法可以在不破坏已经编程的底层 mootools 的情况下允许使用一些 jQuery 脚本?
我尝试了以下方法而不是使用 $:
jQuery(document).ready(function() {
jQuery(".jobpost_body .jobclass .jobvalue").each(function(){
jQuery(this).html(jQuery.trim(jQuery(this).html()));
});
});
但是,它似乎仍然打破了 mootools 元素。特别是,Firebug 给出了以下错误:
TypeError: $(...).getCoordinates is not a function
coordinates = $('site_icons_info').getCoordinates();
任何帮助将不胜感激,因为我以前从未处理过 mootools。