Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
492 views
in Technique[技术] by (71.8m points)

javascript - JavaScript错误,参数列表后出现Uncaught SyntaxError:缺少)(Javascript error, Uncaught SyntaxError: missing ) after argument list)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...