温故而知新

.net相关

导航

判断变量中是否有中文字符

if (escape(str).indexOf("%u") > 0)
{
//字符串 str 中含有汉字
}

posted on 2009-03-19 17:32  业余程序猿  阅读(146)  评论(0)    收藏  举报