[点晴模切ERP]js全角转半角函数-用于解码
当前位置:点晴教程→点晴ERP企业管理信息系统
→『 经验分享&操作答疑 』
![]() ![]() function fullWidthToHalfWidthRegex(str) { return str.replace(/[\uff01-\uff5e]/g, function(char) { return String.fromCharCode(char.charCodeAt(0) - 65248); }).replace(/\u3000/g, ' '); // 处理全角空格 } 点晴模切ERP更多信息:http://moqie.clicksun.cn,联系电话:4001861886 该文章在 2025/4/27 14:41:39 编辑过 |
关键字查询
相关文章
正在查询... |