08 2011 档案

摘要:快捷方法:鼠标:alt+滑鼠左鍵拖拉選取。 鍵盤:alt+shift+方向鍵。 阅读全文
posted @ 2011-08-11 10:38 hen 阅读(27578) 评论(0) 推荐(1) 编辑
摘要: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加上汉字数,就是总的字节数。 阅读全文
posted @ 2011-08-11 09:29 hen 阅读(1298) 评论(2) 推荐(0) 编辑
摘要:类类似数组一样输出:privatestringthis[intindex]{get{returnm_Names[index];}set{m_Names[index]=value;}} 阅读全文
posted @ 2011-08-08 09:08 hen 阅读(294) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示