12.TypeScript String(字符串)

String 对象用于处理文本(字符串)
语法:

let txt = new String("string");
或者:
let txt = "string";

String 对象属性:
image

String 方法:
image
image
image
image
image

posted @ 2024-11-13 17:57  EricShx  阅读(9)  评论(0)    收藏  举报