第十章 String()
10.1 String()对象概要String()构造函数用于创建字符串对象和字符串原始值。//创建string对象
var stringObject = new String('foo');
console.log(stringObject);//foo(o='f',1='o',2='o')
console.log(typeof stringObject);//'object'
//创建st
转载
2016-09-28 11:02:48 ·
424 阅读 ·
0 评论