摘要: 1. 获取字符串长度(length) string Str="abcd"; int long=Str.length; //long=4 2.字符串分割成字符串数组(split) var str = 'a|b|c|d'; console.log(str.split('|')); // ["a", "b 阅读全文
posted @ 2021-12-28 17:03 编程民工 阅读(156) 评论(0) 推荐(0)