jQuery与prototype.js兼容性有关问题解决方案

jQuery与prototype.js兼容性问题解决方案示例代码:1、在页面中先引入jquery.js,然后通过“jQuery$”语句,使

jQuery与prototype.js兼容性问题解决方案

示例代码:

1、在页面中先引入jquery.js,然后通过“jQuery=$;”语句,使用“jQuery”代替$,最后再引入prototype.js。

2、使用jquery的js代码中,使用"jQuery"代替"$"。

?

jQuery(document).ready(function() {jQuery("[type=text][name^=start_]").keypress(function(){……});});