[0]laya 2.x BUG ?? 编译后 SyntaxError: for-in loop head declarations may not have

这个和标准有关
 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_for-in_initializer
 
我代码里没写错 代码里 是这个形式
 
for(var x in list){
xx
}

但是编译出来就变成了 

微信截图_20220223143509.png

 
怎么办。。。 怎么改变这个编译规则??
已邀请:

李林烜

赞同来自:

希望官方关注一下。。。为什么编译后成这样了。。。 
 
不能保持这种标准风格吗
 
for(var x in list){
var y=list[x];
}

Yan

赞同来自:

方便发个示例看一下吗

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作