- //全角半角校验
- function issbccase(strTmp) {
- for (var i=0; i<strTmp.length; i++) {
- if (strTmp.charCodeAt(i) > 128){
- return true;
- console.log("全角")
- break;
- }
- }
- return false;
- }
转: js实现全角半角检测的方法
原文地址:https://www.cnblogs.com/ilimengyang/p/8946688.html
转: js实现全角半角检测的方法
原文地址:https://www.cnblogs.com/ilimengyang/p/8946688.html