我有類似的東西:
Storage.remove({key: 'somedata'}).then(r => {
Storage.set({key: 'somedata', value: data}).then(g => {
Storage.get({key : 'somedata'}).then((val) => {
console.log('Your json is', val);
});
});
});
我從我的 JSON 格式的 API 中獲取資料并嘗試存盤它。
然后當我嘗試在控制臺中輸出存盤的資料時,我得到以下資訊

我想知道如何獲取實際資料而不是物件物件
謝謝
更新 - 帶有潛在解決方案的錯誤圖片

uj5u.com熱心網友回復:
在我看來,我認為你可以試試這個
Storage.remove(key).then(r => {
Storage.set(key, data).then(g => {
Storage.get(key).then((val) => {
console.log('Your json is', val);
});
});
});
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/391721.html
