aar中定义字符串为变量名
By
admin
at 2017-12-10 • 0人收藏 • 1346人看过
tab = {}; mainForm.button.oncommand = function(id,event){ for(i=1;5;1){ var strname = "wbKitView" ++ tostring(i); tab[strname] = i; } } mainForm.button2.oncommand = function(id,event){ console.dump(tab) }
登录后方可回帖