08 2011 档案
摘要:快捷方法:鼠标:alt+滑鼠左鍵拖拉選取。 鍵盤:alt+shift+方向鍵。
阅读全文
摘要:js 添加代码:String.prototype.getBytes = function() { var cArr = this.match(/[^\x00-\xff]/ig); return this.length + (cArr == null ? 0 : cArr.length); }使用方法: "dddZ红dddd白".getBytes ();getBytes用正则表达式来判断字符串中包含汉字的个数,包含的汉字都放到数组cArr中,这样cArr的长度就是汉字的总数。getBytes方法返回length加上汉字数,就是总的字节数。
阅读全文
摘要:类类似数组一样输出:privatestringthis[intindex]{get{returnm_Names[index];}set{m_Names[index]=value;}}
阅读全文