摘要:
/* //计算字符串打印长度 */String.prototype.LengthW = function(){return this.replace(/[^\x00-\xff]/g,"**").length;}/* //是否是正确的IP地址 */String.prototype.isIP = fun 阅读全文
posted @ 2018-03-20 11:39
AZRNG
阅读(218)
评论(0)
推荐(0)
摘要:
JS自带函数concat将两个或多个字符的文本组合起来,返回一个新的字符串。var a = "hello";var b = ",world";var c = a.concat(b);alert(c);//c = "hello,world"indexOf返回字符串中一个子串第一处出现的索引(从左到右搜 阅读全文
posted @ 2018-03-20 11:31
AZRNG
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号