1 2 3 4 5 |
'hello'[1] // 'e' 'hello'.charAt(1) // 'e' 'hello'[-1] // undefined 'hello'.charAt(-1) // '' |
- 本文固定链接: http://7iang.com/?p=384
- 转载请注明: 7iang 于 7iang 麦冰棍 发表
1 2 3 4 5 |
'hello'[1] // 'e' 'hello'.charAt(1) // 'e' 'hello'[-1] // undefined 'hello'.charAt(-1) // '' |