ES6—38:String的拓展方法 Always_positive 2021-04-08 110 阅读1分钟 startsWith()和endsWith()方法 判断字符串是否在原字符串的头部或尾部。 repeat()方法:表示将原字符串重复n次