Javascript WordPress未捕获类型错误:对象[Object Object]没有方法';现场直播thickbox.js:23
在我的WordPress管理区域中,在“Chrome Inspect Element>Console>I get”下 未捕获的TypeError:对象[Object Object]没有“live”方法| thickbox.js:23 当我单击thickbox.js:23时,这就是突出显示的内容Javascript WordPress未捕获类型错误:对象[Object Object]没有方法';现场直播thickbox.js:23,javascript,jquery,wordpress,thickbox,Javascript,Jquery,Wordpress,Thickbox,在我的WordPress管理区域中,在“Chrome Inspect Element>Console>I get”下 未捕获的TypeError:对象[Object Object]没有“live”方法| thickbox.js:23 当我单击thickbox.js:23时,这就是突出显示的内容 //add thickbox to href & area elements that have a class of .thickbox function tb_init(domChunk){
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
jQuery(domChunk).live('click', tb_click);
我在我的网页上看到同样的东西等等
我已经把这和我的主题联系起来了,我已经和他们联系过了,但是还没有任何帮助
希望有人能帮我弄清楚这里发生了什么。如果您使用的是jQuery 9.1+版,请尝试添加插件
add_action( 'admin_enqueue_scripts', 'admin_scripts' );
function admin_scripts() {
wp_enqueue_script('jquery-migrate','http://code.jquery.com/jquery-migrate-1.2.1.js',array('jquery'));
}
在添加thickbox之前,您是否链接到jQuery脚本?您使用的是哪个版本的jQuery?在1.9中被删除,取而代之的是.1.8.3它的WP。但是,为什么他们不使用最新版本?玩了它之后,现在它说了些别的