JavaScript无法正常运行,但没有错误

时间:2018-11-05 23:25:04

标签: javascript html

我有一个代码,看起来完全没问题,在那里看不到任何错误,但仍然无法正常工作。

以下是链接:https://jsfiddle.net/a3dhuon4/

10>  Generating System.Reflection.DispatchProxy proxy code.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.AssemblyBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildAssembly(Type, string, string, AssemblyBuilderAccess)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.AssemblyBuilderAccess' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildAssembly(Type, string, string, AssemblyBuilderAccess)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.TypeBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethods(TypeBuilder, IEnumerable<XmlRpcProxyGen.MethodData>)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildAssembly(Type, string, string, AssemblyBuilderAccess)' will always throw an exception due to the missing method 'AssemblyBuilder.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.MethodBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.CustomAttributeBuilder' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.ILGenerator' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.LocalBuilder' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.ParameterBuilder' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.Label' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)' will always throw an exception due to the missing method 'TypeBuilder.DefineMethod(string, MethodAttributes, Type, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildBeginMethods(TypeBuilder, IEnumerable<XmlRpcProxyGen.MethodData>)' will always throw an exception due to the missing method 'TypeBuilder.DefineMethod(string, MethodAttributes, Type, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildEndMethods(TypeBuilder, IEnumerable<XmlRpcProxyGen.MethodData>)' will always throw an exception due to the missing method 'TypeBuilder.DefineMethod(string, MethodAttributes, Type, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.ConstructorBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildConstructor(TypeBuilder, Type, string)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildConstructor(TypeBuilder, Type, string)' will always throw an exception due to the missing method 'TypeBuilder.DefineConstructor(MethodAttributes, CallingConventions, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.

工作方式:点击“进行计算”后,应打开一个包含最终价格的新标签,以及另一个带有不同变量的文本框。但这没有发生。我不知道该代码有什么问题。

我想这可能是Google API的问题(因为我想这只是出于测试,可能会有一些限制)。

PS。顺便说一句,我什至可以看到“正在加载”,但此后什么也没发生。

1 个答案:

答案 0 :(得分:0)

您的问题是来自http://rustakso.com/codecanCalc/js/bootstrap.min.js

的不安全脚本请求

使用https或其他主机。或将代码放入html中。

但是您的代码工作正常!看它! Look