智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/1a/1adfe310fc0078cdd5998656d21...

14 lines
215 B

exports = function(str, n) {
var ret = '';
if (n < 1) return '';
while (n > 0) {
if (n & 1) ret += str;
n >>= 1;
str += str;
}
return ret;
};
module.exports = exports;