Im getting the error: 'Uncaught SyntaxError: missing ) after argument list'
(我收到错误:“参数列表后未捕获的SyntaxError:缺少”)
In my function:
(在我的职能:)
const addFavData = (id,logo,name,venue,website) => { db.addFav({id,logo,name,venue,website}) M.toast({html: `Berhasil menambahkan ${name}`, classes: 'rounded'}) pushNotification(`Berhasil menambahkan ${name}`) }
And this addFav function:
(这个addFav函数:)
const addFav = ({id, logo, name, venue, website}) => { dbPromise.then(db => { let tx = db.transaction('favs', 'readwrite') let store = tx.objectStore('favs') let item = { id: id, logo: logo, name: name, venue: venue, website: website, created: new Date().getTime() } store.put(item, id) return tx.complete }) .then(() => console.log('Berhasil Menambahkan Tim', name)) .catch(() => console.log('Gagal Menambahkan Tim')) }
ask by Anugrah Septiansyah translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…