下面这段代码是从.NET Framework 2.0 beta2中弄出来的,看后除了大为faint外,真的是没有语言了,虽然作者还是考虑了不少的优化。欢迎大家来重构一下这段代码:) 这个方法的功能是把JScript字符串转换为文本形式,也就是把一些特殊的字符转意一下。 internal static string QuoteJScriptString(string value, bool forUrl); Declaring Type: System.Web.UI.Util Assembly: System.Web, Version=2.0.0.0 public static string QuoteJScriptString(string value, bool forUrl)} // 看后是不是感到明白了微软为什么恐惧OpenSource?! 相关文章: 2022-03-05 2022-12-23 2022-12-23 2022-01-23 2022-01-02 2022-12-23 2022-12-23 2021-10-04