摘要:
匹配中文字符的正则表达式: [\u4e00-\u9fa5]
匹配双字节字符(包括汉字在内):[^\x00-\xff]
应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)
阅读全文
摘要:
//显示JavaScript的Alert信息
public static void ShowMsg(Page thisPage, string AlertMessage)
{
Literal txtMsg = new Literal();
txtMsg.Text = "" + "";
thisPage.Controls.Add(txtMsg);
}
阅读全文