重新定义 jQuery 依赖搜索路径
Redefine jQuery dependency search path
我发现由于 jQuery 资源“http://code.jquery.com/jquery-1.11.2.min.js”无法访问,典型的 Websharper "hello world" 应用程序无法脱机工作。问题是:我可以将此搜索路径覆盖到我的 Web 应用程序的本地文件夹吗?
下载 jquery-1.11.2.min.js
并将其放入 Scripts
。然后将其作为根标记 configuration
:
的子项添加到您的 Web.config
<appSettings>
<add key="WebSharper.JQuery.Resources.JQuery" value="/Scripts/jquery-1.11.2.min.js" />
</appSettings>
如果您想对 jquery-ui 执行类似操作, 会有所帮助。
我发现由于 jQuery 资源“http://code.jquery.com/jquery-1.11.2.min.js”无法访问,典型的 Websharper "hello world" 应用程序无法脱机工作。问题是:我可以将此搜索路径覆盖到我的 Web 应用程序的本地文件夹吗?
下载 jquery-1.11.2.min.js
并将其放入 Scripts
。然后将其作为根标记 configuration
:
Web.config
<appSettings>
<add key="WebSharper.JQuery.Resources.JQuery" value="/Scripts/jquery-1.11.2.min.js" />
</appSettings>
如果您想对 jquery-ui 执行类似操作,