我有一个WordPress插件网站,它使用一个插件,只需点击一个按钮即可轻松添加弹出窗口。工作正常,但现在每次点击弹出按钮时都会出现错误。除了错误之外,弹出窗口不再出现。相反,滚动条消失,页面冻结。就好像一个隐形弹出窗口已经加载。在wordpress中删除重复的JQuery库
我打F12并抓获被点击的按钮时的错误:
Uncaught TypeError: f.getClientRects is not a function
at r.fn.init.offset (jquery-3.2.1.min.js?ver=4.8.2:4)
at Object.getWithinInfo (position.min.js?ver=1.11.4&nocache=1:11)
at r.fn.init.a.fn.position (position.min.js?ver=1.11.4&nocache=1:11)
at r.fn.init.reposition (site.min.js?defer&ver=1.6.6&nocache=1:1)
at r.fn.init.e.fn.popmake (site.min.js?defer&ver=1.6.6&nocache=1:1)
at r.fn.init.open (site.min.js?defer&ver=1.6.6&nocache=1:1)
at r.fn.init.e.fn.popmake (site.min.js?defer&ver=1.6.6&nocache=1:1)
at HTMLButtonElement.<anonymous> (site.min.js?defer&ver=1.6.6&nocache=1:2)
at HTMLDocument.dispatch (jquery-3.2.1.min.js?ver=4.8.2:3)
at HTMLDocument.q.handle (jquery-3.2.1.min.js?ver=4.8.2:3)
我认为这个问题涉及到重复安装的JQuery库,但我不知道是否有人能在我怎能方向指向我要么删除我的wordpress安装中的重复库或产生一个工作?
你可以使用这个https://codex.wordpress.org/Function_Reference/wp_dequeue_script – designtocode