[LayaAir 1.0]LocalStorage 接口适配问题

 
    MiniLocalStorage.setItem=function(key,value){
        try{
            VVMiniAdapter.window.qg.setStorageSync({
                key:key,
                data:value ///是错误的
            });
        }
        catch(error){
            VVMiniAdapter.window.qg.setStorage({
                key:key,
                data:value //这是错误的
 
            });
        }
    }
 
 
 
MiniLocalStorage.setItem=function(key,value){
        try{
            VVMiniAdapter.window.qg.setStorageSync({
                key:key,
                value:value ///这是正确的
            });
        }
        catch(error){
            VVMiniAdapter.window.qg.setStorage({
                key:key,
                value:value //这是正确的
 
            });
        }
    }
 
 
 
参考
https://minigame.vivo.com.cn/documents/#/api/data/storage 
已邀请:

要回复问题请先

商务合作
商务合作