// Promise object, can save state
//Promise first step
// Asynchronous code is written in the Promise function Step 2
const promise = new Promise((resolv, reject) => {
// Promise has three states: pending fulfilled rejected span>
// In progress Has succeeded Has failed
// Get system information
wx.getSystemInfo({
success: res => resolv(res),
fail: error => reject(error)
})
})
// Step 3: Call the promise, you can call two callbacks Function, the first one is successful, the second one is failed
promise.then(
res=>console.log(res),
error=>console.log(error)
)
// Promise object, can save state
//Promise first step
// Asynchronous code is written in the Promise function Step 2
const promise = new Promise((resolv, reject) => {
// Promise has three states: pending fulfilled rejected span>
// In progress Has succeeded Has failed
// Get system information
wx.getSystemInfo({
success: res => resolv(res),
fail: error => reject(error)
})
})
// Step 3: Call the promise, you can call two callbacks Function, the first one is successful, the second one is failed
promise.then(
res=>console.log(res),
error=>console.log(error)
)
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3976 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC