简体   繁体   English

Asp.net webforms 2.0 网站:如何将 jquery 版本更新为较旧的版本

[英]Asp.net webforms 2.0 website : how can i update jquery version to something less older

We have an Asp.net webforms 2.0 website, and after penetration testing it results we have to upgrade the jquery version.我们有一个 Asp.net webforms 2.0 网站,经过渗透测试结果我们必须升级 jquery 版本。 How to update jquery version?如何更新 jquery 版本?

If this is a web forms web site, then nuget should work.如果这是一个 web forms web 站点,那么 Z0558440846982BFE7FF23B159C377F 应该可以工作。 But, then again, just download the newer version of jQuery, and delete the current jQuery.js, and jQuery.min.js, and replace them with the newer version.但是,话又说回来,只需下载较新版本的 jQuery,并删除当前的 jQuery.js 和 jQuery.min.js,并替换为较新版本。

I don't believe anything more then just swapping out your existing jquery.cs, and jquery.min.cs is required.除了更换现有的 jquery.cs 和 jquery.min.cs 之外,我什么都不相信。 (not looked close, but I don't think jQuery has or comes with any.css files. jQuery.UI most certainly does - but you noted you just using jQuery. (not looked close, but I don't think jQuery has or comes with any.css files. jQuery.UI most certainly does - but you noted you just using jQuery.

So, just remove the existing jQuery.js and replace.因此,只需删除现有的 jQuery.js 并替换即可。 Since being older site, it VERY possible that individual pages has a script reference, and as a result, unless there is ONE master page where these scripts are consumed, then you probably best to give the up-dated jquery.cs file the SAME name as the existing one.由于是较旧的站点,因此各个页面很可能具有脚本引用,因此,除非有一个使用这些脚本的母版页,否则您最好为更新的 jquery.cs 文件提供相同的名称作为现有的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM