以下のようにtoastr関数を使用する必要があります。
は
// Display a warning toast, with no title
toastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!')
// Display a success toast, with a title
toastr.success('Have fun storming the castle!', 'Miracle Max Says')
// Display an error toast, with a title
toastr.error('I do not think that word means what you think it means.', 'Inconceivable!')
// Immediately remove current toasts without using animation
toastr.remove()
// Remove current toasts using animation
toastr.clear()
// Override global options
toastr.success('We do have the Kapua suite available.', 'Turtle Bay Resort', {timeOut: 5000})
**この行の前にtoastrスクリプト**を含めていますか? – sabithpocker
はい。それを解決しました。このような 'toastr'を宣言しなければならなかったのは、コマンド:toastr ["成功 "]("テストメッセージ "、"テスト ")'です。 – AllramEst
あなた自身の質問への回答を投稿し、問題の内容とそれを解決するために必要なことを詳しく説明するか、自分の投稿を削除することができます。 – connexo