首页 > 解决方案 > 如何在asp.net core mvc + electronNET中安装jquery?

问题描述

我的应用程序使用 asp.net core mvc + ElectronNET 错误无法文件模块 jquery 在我电子化启动时出现(打开网站到窗口应用程序)。我试图在 package.json (dir: application/application/obj/Host) 中写 "jquery": "2.2.1" 然后 npm install 但它不起作用。如何解决这个问题呢。

这是检查员的错误

标签: asp.net-core-mvcelectron

解决方案


我有类似的问题和接缝是 jquery 实例的问题。只需在 WebPreferences 中将 NodeIntegration 设置为 false。请检查这个问题-> github问题


推荐阅读