打開app/javascript/packs/application.js,加入以下內容 const toastr = require('toastr');window.toastr = toastr;. 你可以根據toastr 官方的demo配置自己的option, ...
確定! 回上一頁