[英]Visual Studio npm install
I have an ASP.NET Core project.我有一个 ASP.NET Core 项目。 I want to use jQuery UI.
我想使用 jQuery UI。 I added "jquery-ui": "1.12.1" to package.json and it was installed successfully.
我将 "jquery-ui": "1.12.1" 添加到 package.json 并成功安装。 node_modules/jquery-ui doesn't have a file like jquery-ui.min.js.
node_modules/jquery-ui 没有像 jquery-ui.min.js 这样的文件。 There are gruntfile.js and many others.
有 gruntfile.js 和许多其他的。 What I have to do now?
我现在必须做什么?
Try to add "jquery-ui-dist": "1.12.1"
to the package.json
, then rebuild the project (tp install the package), finally, you will find the jquery-ui.min.js
file from the node_modules/jquery-ui-dist
folder.尝试添加
"jquery-ui-dist": "1.12.1"
到package.json
,然后重建项目(TP安装包),最后,你会发现jquery-ui.min.js
从文件node_modules/jquery-ui-dist
文件夹。
Additional:额外的:
You could add the JQuery UI reference via the CDN:您可以通过 CDN 添加 JQuery UI 参考:
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.