使用jQuery添加表单字段(wordpress中的联系人7表单)(Adding form fields with jQuery (contact 7 form in wordpress))
我正在尝试使用jQuery添加表单字段(wordpress中的联系人7表单)。 它具有用jQuery显示的隐藏字段。
我刚刚完成了一个工作正常的jsFiddle: http : //jsfiddle.net/Mangomeat/SfTyG/1/
我的javascript:
$(document.body).click(function () { $("div:hidden:first").fadeIn("slow"); });
但是当我将jQuery函数放入我的wordpress测试页面时,我无法使其工作。
I´m trying to add form fields with jQuery (contact 7 form in wordpress). It has hidden fields that are shown with jQuery.
I just completed a jsFiddle that works fine: http://jsfiddle.net/Mangomeat/SfTyG/1/
My javascript:
$(document.body).click(function () { $("div:hidden:first").fadeIn("slow"); });
But when I put the jQuery function into my wordpress test page, I can't get it to work.
原文:https://stackoverflow.com/questions/13159372
最满意答案
未能升级VS2015的nuget
这个问题应该是核心visual studio可扩展性中的一个错误或问题。 这不是NuGet特定的问题。 它通常与诸如反病毒或加密服务等相关 。 我想在这里提供一些故障排除:
- 以管理员身份登录到计算机,并使用管理员启动Visual Studio。
检查您的计算机是否安装了
McAfee Endpoint Encryption full-disk encryption product
,而不是防病毒软件。 如果是,则应该从全盘加密中排除devenv.exe
和VSIXInstaller.exe
。这里有一个注册表片段,告诉McAfee Endpoint Encryption排除这些文件。 一旦你这样做,重新启动PC:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MfeEEFF\ExemptedProcesses] "1"="devenv.exe" "2"="VSIXInstaller.exe"
有关详细信息,请查看SO上相同问题的答案 。
关闭Visual Studio并删除包含Nuget副本的
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions
中的所有文件夹
关闭Visual Studio的所有实例。
转到您的全局Visual Studio扩展文件夹。 NuGet不会安装在您的每个用户文件夹中; 相反,你会在Program Files中看到它。 类似于:C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions
查看该文件夹。 你会看到很多随机命名的文件夹,比如“sdjfksiov.djd”等等。 大多数(如果不是全部的话)是NuGet。 您需要知道哪些是NuGet,哪些不是,特别是如果您安装了其他扩展。 (你可以知道它是否是NuGet,因为它里面会有一堆NuGet。* .dll文件,如果你没有看到NuGet的东西,那么你需要保留它。)
将该扩展名文件夹重命名为:C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions_RENAMED
直接从Visual Studio扩展库下载NuGet。
执行刚刚下载的下载的NuGet.Tools.vsix文件。 不要通过Visual Studio来完成。 只需双击.vsix文件即可进行安装。
NuGet应该成功安装。 作为安装的一部分,它将再次创建扩展文件夹,因此您将再次看到C:\ Program Files文件(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions
打开重命名的扩展文件夹,将所有非NuGet扩展名移到新的扩展文件夹中。
现在打开Visual Studio。 你应该看到新版本的NuGet已经安装并正在工作。
一旦你验证了所有的工作,你可以删除重命名的扩展文件夹
希望这可以给你一些帮助。
failed to upgrade nuget for VS2015
This issue should be a bug or issue in the core visual studio extensibility. It is not a NuGet specific issue. It is generally tied to things like anti virus or encryption services. I would like provide some troubleshootings here:
- Log in to your computer as an administrator and start Visual Studio with administrator.
Check if your computer has a
McAfee Endpoint Encryption full-disk encryption product
installed, not the antivirus. If yes, you should excludedevenv.exe
andVSIXInstaller.exe
from full-disk encryption.Here’s a registry snippet to tell McAfee Endpoint Encryption to exclude these files. Once you do that, reboot PC:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MfeEEFF\ExemptedProcesses] "1"="devenv.exe" "2"="VSIXInstaller.exe"
For the detail info, please check the answer for the same issue on SO.
Close visual studio and delete all the folders in
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions
that contain a copy of Nuget
Close all instances of Visual Studio.
Go to your global Visual Studio extensions folder. NuGet doesn’t install in your per-user folder; instead, you’ll see it in Program Files. Something like: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions
Look in that folder. You will see a lot of randomly named folders like “sdjfksiov.djd” and so on. Most (if not all) of those are NuGet. You’ll want to be aware of which ones are NuGet and which ones aren’t, particularly if you have other extensions installed. (You can tell if it's NuGet because it'll have a bunch of NuGet.*.dll files in there. If you don't see NuGet stuff in there, you'll want to keep it.)
Rename that Extensions folder to something like: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions_RENAMED
Download NuGet directly from the Visual Studio extension gallery.
Execute the downloaded NuGet.Tools.vsix file you just downloaded. Don’t do it through Visual Studio. Just double-click the .vsix file to install it.
NuGet should successfully install. As part of that install, it will create the Extensions folder again, so you will once again see C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions
Open up your renamed extensions folder and move all of the non-NuGet extensions into the new Extensions folder.
Now open Visual Studio. You should see the new version of NuGet installed and working.
You can delete that renamed Extensions folder once you’ve verified everything is working
Hope this can give you some help.
相关问答
更多-
VS2015升级后的垃圾收集和Parallel.ForEach问题(Garbage Collection and Parallel.ForEach Issue After VS2015 Upgrade)[2022-06-30]
现在看起来问题已经解决,请参阅http://blogs.msdn.com/b/maoni/archive/2015/08/12/gen2-free-list-changes-in-clr-4-6-gc的.aspx It looks like the problem has been addressed now, see http://blogs.msdn.com/b/maoni/archive/2015/08/12/gen2-free-list-changes-in-clr-4-6-gc.aspx -
打开程序包管理器控制台并使用Update-Package cmd-let更新所有程序包。 Open the Package Manager Console and use the Update-Package cmd-let to update all packages.
-
NuGet升级问题(NuGet upgrade issue)[2021-08-21]
这已在我们的“已知问题”页面上记录: http : //docs.nuget.org/docs/reference/known-issues 有两个原因可能会遇到这个问题。 您已经安装了NuGet的未签名或错误签名的版本。 例如,如果您抓住了我们的持续集成服务器(http://ci.nuget.org/)或者安装了我们之前的CodePlex版本。 另外还有一个问题影响到Windows XP或Windows 2003的某些用户看来,机器上的证书颁发机构不正确地将证书报告为无效。 我们还在调查这个问题。 Thi ... -
看起来这是在NuGet Visual Studio 2015扩展的版本3.2 RC中修复 - 至少对我来说,更新到这个版本。 关于这个问题的讨论可以在这里找到,建议从NuGet 3.1更新到3.2 RC。 更新 扩展版本3.2现已发布(在此找到),其中包括此修复程序。 澄清 要做到这一点,你需要两件事情: 一个包含disableSourceControlIntegration设置的nuget.config文件 NuGet Visual Studio 2015扩展版的一个版本,它遵循disableSource ...
-
未能升级VS2015的nuget 这个问题应该是核心visual studio可扩展性中的一个错误或问题。 这不是NuGet特定的问题。 它通常与诸如反病毒或加密服务等相关 。 我想在这里提供一些故障排除: 以管理员身份登录到计算机,并使用管理员启动Visual Studio。 检查您的计算机是否安装了McAfee Endpoint Encryption full-disk encryption product ,而不是防病毒软件。 如果是,则应该从全盘加密中排除devenv.exe和VSIXInstall ...
-
在更改VS2015升级的机器密钥后,密码无法正常工作(Passwords not working after having to change machine key for VS2015 upgrade)[2023-07-20]
好。 事实证明,有一种似乎有效的兼容模式,并且允许我不更改加密。 您所要做的就是将compatibilityMode =“Framework20SP2”添加到web.config中的machineKey,如下所示:希望这可以帮助其他遇到此问题的人。 Ok. It turns out ... -
Nuget升级问题(Nuget upgrade issues)[2022-03-06]
NuGet命令行以NuGet包的形式提供。 与任何其他NuGet包一样,您可以使用Package Manager控制台中的-Version开关获取特定版本。 要获取NuGet命令行工具的v1.4.2,您应该从程序包管理器控制台执行以下PowerShell脚本: Install-Package Nuget.CommandLine -Version 1.4.20615.182 The NuGet Command Line is available as a NuGet package. Just like wi ... -
无法在VS2015中通过Nuget下载System.Data.Sqlite(Cannot download System.Data.Sqlite via Nuget in VS2015)[2022-07-28]
找到了解决方法。 通过NuGet安装实体框架; 现在安装System.Data.SQLite - 它将正确安装。 虽然没有直接的解决方案 - 很可能是NuGet中的一个错误。 Found a workaround. Install Entity Framework via NuGet; Now install System.Data.SQLite - it will install correctly. No direct solution though - most likely it's a bug i ... -
在这里回答这个问题:不,这不是它应该如何运作; 不会从.csproj文件中的XML中删除引用元素。 To answer the question here: no, this is not how it should work; reference elements are not removed from the XML in the .csproj file.
-
由于使用了需要管理员权限的本地IIS实例,我一直在运行VS作为管理员,magicandre1981指出NuGet.config需要写权限,所以我给普通用户提供了对该文件夹的完全访问权限(我相信NuGet.config文件是因此在管理员上下文中生成,因此缺少正常的用户权限)。 这本身并没有解决问题,但之后进行了Nuget Package Restore ,导致NuGet feed再次显示。 I had been running VS as administrator due to using a local ...