[转]Discuz和jQuery冲突的解决方法
日期 :
2009年4月18日 10:56 am
评论 :
1
foot
日历 :
18
Apr
2009
最近在设计Discuz皮肤,要用到jquery,发现冲突得恶心,找了这么篇文章,不知道好不好用,先留着慢慢看
====================== 以下为转载内容=========================
Discuz和jQuery的冲突有两点,在/include/javascript/common.js文件的57~64之间有如下代码:
Array.prototype.push = function(value) {
this[this.length] = value;
return this.length;
}
function $(id) {
return document.getElementById(id);
}