我将用户then()
存储在 if (succeeded) {
// If your callback returned a value,
// resolve the returned Promise to it...
if (typeof result.then === 'function') {
// ...unless it is a Promise itself,
// in which case we just pass our internal
// resolve and reject to then() of that Promise
result.then(resolve, reject)
} else {
resolve(result)
}
} else {
// If your callback threw an error,
// reject the returned Promise with it
reject(error)
}
})
中以发送服务器以通过php脚本存储它。我想将其转换为cart
到ArrayList<HashMap<String, String>>
,以便我可以将其传递给参数。
ArrayList<HashMap<String, String>>