为了不再用for循环 new Array( num + 1 ).join( str ); 简析:new Array(N)建立N个空数组,join用str把几个空数组的内容连接起来,也就是把N-1个str内容连接起来