问题:common.js下拉菜单与评论中的jquery-1.8.2.min.js调用js代码冲突
解决:如下即可
源文件代码(common.js中代码) 替换为的代码 function $(id){ return document.getElementById(id); } function $(id) {
if (typeof jQuery == 'undefined' || (typeof id == 'string' && document.getElementById(id))) {
return document.getElementById(id);
} else if (typeof id == 'object' || !/^\w*$http://www_qibosoft_comexec(id) ||
/^(body|div|span|a|input|textarea|button|img|ul|li|ol|table|tr|th|td)$http://www_qibosoft_comexec(id)){
return jQuery(id);
}
return null;
}