这种情况用for循环比较麻烦,先要构建一个等比数列。用while循环容易实现:
var i = 1 while(i < 100) { // Do something i *= 2 }
是课表还是什么?