ASP.NET 默認Web Form項目遇到jquery不是有效的script名,名字必須以「.js」結束的問題解決
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/1048
在 Visual Studio 2022 中配置 ASP.NET Web Form 遇到“jquery不是有效的script名,名字必須以「.js」結束的問題解決”
打開NuGet Package Manager搜索并安裝
AspNet.ScriptManager.jQuery.UI.Combined
+
AspNet.ScriptManager.jQuery
雖然可能搜索到的結果有一個是Microsoft.ScriptManager.jQuery.UI.Combined,但是最好的話還是選擇AspNet.ScriptManager.jQuery.UI.Combined;
同理也有一個叫Microsoft.ScriptManager.jQuery.UI.Combined的,最好使用最新版的AspNet.ScriptManager.jQuery。
This article was last edited at