摘要: replace与replaceAll的区别 这两者有些人很容易搞混,因此我在这里详细讲述下。 replace的参数是char和CharSequence,即可以支持字符的替换,也支持字符串的替换(CharSequence即字符串序列的意思,说白了也就是字符串); replaceAll的参数是regex 阅读全文
posted @ 2019-11-07 17:58 腊月出去玩 阅读(258) 评论(0) 推荐(0) 编辑
摘要: var arr1 = ["i", "b", "c", "d", "e", "f","x"]; //数组A var arr2 = ["a", "b", "c", "d", "e", "f", "g"];//数组B var temp = []; //临时数组1 var temparray = [];// 阅读全文
posted @ 2019-11-07 17:53 腊月出去玩 阅读(285) 评论(0) 推荐(0) 编辑