Justin's Words


  • Home

  • About

  • Archives
Justin's Words

JavaScript 检测汉字

Posted on 2015-07-27 | In Front-End |
1
2
3
4
function isChinese(word) {
var re = /[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/gi;
return re.test(word);
}
# JavaScript
为 Lollipop 上 Chrome 设置相应颜色状态栏
AngularJS $watch()
Justin Young

Justin Young

You Deserve A Better Life

107 posts
15 categories
54 tags
RSS
Github Twitter
© 2014 - 2019 Justin Young
Powered by Hexo
Theme - NexT.Mist