function repeat(target,n){ return Array.prototype.join.call({length: n + 1} , target); }
repeat('str',2);//输出strstr