字符串的经常使用方法及举例应用

经常使用方法:web 1) charAt() 返回指定索引位置的字符;正则表达式 例:数组 var str='hello'; console.log(str.charAt(4)); 2) concat() 链接两个或多个字符串,返回链接后的字符串(拼接);jsp 例:svg var str='hello'; var s1=str.concat(s,s,s,s); console.log(s1);
相关文章
相关标签/搜索