$ npm i -D sweetalert
import { sweetalert } from './sweetalert';
# ??? import
我通常使用 Script 标签,然后在 ts 文件中使用 swal() 。
我正在使用它:
import swal from 'sweetalert';
// then later in the code
swal("Here's a message!")
+1
最有用的评论
我正在使用它: