摘要: 定义字符串有两种方法: 1.构造函数的方法 var str = new String("hello") console.log(str) //hello (是以对象的形式存放,构造函数方法定义的字符串是引用类型(object)) 2.字面量的方法 var str = "hello" console. 阅读全文
posted @ 2020-03-22 15:06 JAY*** 阅读(308) 评论(0) 推荐(0) 编辑