文章分类 - 转载
网上看到的一些比较好的文章!收藏!
摘要:在编程时经常用到字符串的连接操作。例如: var str="helo";str+="world";实际上,这段代码在幕后执行的步骤如下:(1) 创建存储"hello"的字符串。(2) 创建存储"world"的字符串。(3) 创建存储连接结果的字符串。(4) 把str的当前内容复制到结果中。(5) 把"world"复制到结果中。(6) 更新str,使它指向结果。每次完成字符串连接都会执行步骤2到6,使得这种操作非常消耗资源。如果重复这一过程几百次,甚至几千次,就会造成性能问题。解决方法是用Arra
阅读全文
摘要:1 代码 2 3 using System; 4 using System.Collections.Generic; 5 using System.Text; 6 using System.Web; 7 using System.Web.UI; 8 9 /// </summary> 10 public class JScript 11 { 12 #region 旧版本 13 /// <summary> 14 /// 弹出JavaScript小窗口 15 /// </summary> 16 /// <param name="js"..
阅读全文
摘要:1 代码 2 3 using System; 4 using System.Collections.Generic; 5 using System.Text; 6 using System.Web; 7 using System.Web.UI; 8 9 /// </summary> 10 public class JScript 11 { 12 #region 旧版本 13 /// <summary> 14 /// 弹出JavaScript小窗口 15 /// </summary> 16 /// <param name="js"..
阅读全文

浙公网安备 33010602011771号