[]as3字符串截取int的问题
String("10,12").split(',');
被自动转成以下JS并报错Uncaught ReferenceError: int is not defined
function DConfig(){};
__class(DConfig,'DConfig');
__getset(1,DConfig,'GamrRoomEnterPower',function(){
return DConfig.gamrRoomEnterPower;
},function(value){
DConfig.gamrRoomEnterPower=value;
console.log(DConfig.gamrRoomEnterPower.length);
console.log(DConfig.gamrRoomEnterPower);
for (var i=0;i < DConfig.gamrRoomEnterPower.length;i++){
DConfig.gamrRoomEnterPower=int(DConfig.gamrRoomEnterPower[i]);
}
});[/i]
被自动转成以下JS并报错Uncaught ReferenceError: int is not defined
function DConfig(){};
__class(DConfig,'DConfig');
__getset(1,DConfig,'GamrRoomEnterPower',function(){
return DConfig.gamrRoomEnterPower;
},function(value){
DConfig.gamrRoomEnterPower=value;
console.log(DConfig.gamrRoomEnterPower.length);
console.log(DConfig.gamrRoomEnterPower);
for (var i=0;i < DConfig.gamrRoomEnterPower.length;i++){
DConfig.gamrRoomEnterPower=int(DConfig.gamrRoomEnterPower[i]);
}
});[/i]
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: