创建字符串 通过字面量的形式创建 var str1 = "hello"; var str2 = ""; //空串,隐式转化成false 通过new的形式创建 var str = new String("hello string");