简体   繁体   English

Javascript Wordpress停止工作

[英]Javascript Wordpress Stopped Working

Can anyone quickly look at this and see why jquery doesn't seem to be working? 任何人都可以快速查看一下,看看为什么jquery似乎不起作用吗? It was working earlier today, and I'm not sure what I could have touched that would cause it to stop. 今天早些时候它在工作,我不确定我能碰到什么会导致它停止。

I have a jsfiddle set up here: http://jsfiddle.net/Nqdb3/ But if that's not good for troubleshooting this I can provide the actual site. 我在这里设置了一个jsfiddle: http : //jsfiddle.net/Nqdb3/,但是如果这对于排除故障不是很好,那么我可以提供实际的站点。

I couldn't log in, But I can tell you that many times I have encountered jQuery problems in wordpress both in admin and front end. 我无法登录,但是我可以告诉你,很多时候我在admin和前端的wordpress中都遇到了jQuery问题。

These usual suspects are plugins but it happened to me in the past without even touching the site. 这些通常的嫌疑人是插件,但过去我没有碰到这个网站就发生了。

1) start disabling all plugins one by one - this will eliminate the possibility of different scripts that cause it. 1)开始一个接一个地禁用所有插件-这将消除导致它的不同脚本的可能性。 If you were lucky, you will discover the culprit. 如果幸运的话,您会发现罪魁祸首。

2) upload the js folder from the same wordpress installation. 2)从同一wordpress安装上载js文件夹。 -- download the same version you already have -- upload the js directory under wp-includes - all of it. -下载您已经拥有的相同版本-将js目录上传到wp-includes-全部。 and replace your current directory . 并替换当前目录。

For me it worked many (many) times. 对我来说,它工作了很多次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM