升级到新的 wrpdress jquery 后停止工作。
Uncaught TypeError: Cannot read property 'expr' of undefined
2
Uncaught TypeError: Property 'jQuery' of object [object Window] is not a function www.xxx.si:313
Uncaught TypeError: Property 'jQuery' of object [object Window] is not a function thickbox.js:18
Uncaught TypeError: undefined is not a function jquery.form.min.js:12
Uncaught TypeError: undefined is not a function scripts.js:3
Uncaught TypeError: Property 'jQuery' of object [object Window] is not a function
Uncaught TypeError: Property 'jQuery' of object [object Window] is not a function
详情例如:
cannot read property 'expr' of undefined
jQuery.extend(jQuery.expr[':'], {
undefined is not a function scripts.js:3
$(function() {
怎么了?我该如何解决这个问题?
编辑:
Mat帮我找到这个noConflict jquery,它是事件日历插件的一部分
// jQuery DOM extreme protection management
$options = get_option('optionsEventsCalendar');
echo ' <script type="text/javascript">',"\n\t";
echo '// <![CDATA[',"\n\t";
echo 'var ecd = {};',"\n\t";
echo 'ecd.jq = jQuery.noConflict('.$options['jqueryextremstatus'].');',"\n\t";
echo '//]]>',"\n";
echo ' </script>',"\n";
echo "<!-- End Of Script Generated By Events-Calendar - ".EVENTSCALENDARVERS." -->\n";