摘要: 网络上搜集的一些有用的commonjs函数。/** 获得中文-英文字符串长度 */ function getStrLens(str){ return str.replace(/[^\x00-\xff]/g,"**").length; } /** 数字验证 */ function numberCheck(value){ var value = $.trim(value); ... 阅读全文
posted @ 2019-07-29 11:44 china/xin 阅读(401) 评论(0) 推荐(0)