facebook中then在cocos中应该怎么写啊

cttx521
Sat, 01 Sep 2018 09:22:38 +0000

var xxx= FBInstant.initializeAsync().then(
       function()   { var locale = FBInstant.getLocale(); // 'en_US'
           var  platform = FBInstant.getPlatform(); // 'IOS'
           var  sdkVersion = FBInstant.getSDKVersion(); // '3.0'
           var playerID = FBInstant.player.getID();
           console.log(locale+' '+platform+' '+sdkVersion+' '+playerID);
        });
          console.log(xxx);

这是官方的一段代码。xxx能读取出来。但是then里面的语句不执行啊。基础差。没办法只能求助了

阅读整个主题