ECMAScript 6 —— 知识点(三) 字符串

一、字符串新方法
1. chatCodeAt:
2. fromCodePoint:
3. at:ES7 方法
4. normalize:
5. includes:
6. startsWith:
7. endsWith:
8. repeat:
9. padStart:
10. padEnd:
11. 模板字符串:使用反引号` 定义多行语句。

let name = 'Bob',time = 'today';
console.log(`Hello ${name}!`);

猜你喜欢

转载自blog.csdn.net/wuxinwudai/article/details/80827109