javascript string对象的属性与方法 一 创建string对象 new string('string'); 更直接的定义方法是var str = 'string'; 二 string属性 1.constructor 2.lenght 字符串的长度 3.prototype