Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 212 Bytes

22_string.md

File metadata and controls

13 lines (9 loc) · 212 Bytes

JavaScript String

字符串对象用于处理已有的字符块。

例:

var txt="Hello world!"
document.write(txt.length)
document.write(txt.toUpperCase())

输出12 HELLO WORLD!