我使用RealRashid\SweetAlert\Facades\Alert来创建确认警报,但是我不知道如何为警报按钮设置语句。我用这行代码:Alert::question('Promoted To Admin?', 'Make this user as system admin?')这是输出
Alert::question('Promoted To Admin?', 'Make this user as system admin?')
是否有办法向按钮添加语句?例如,如果单击“确定”按钮,则继续进行下一个过程;如果单击“取消”按钮,则单击sweetalert,取消任何过程。
6za6bjd01#
As per my suggestion , you should be use that library. https://sweetalert.js.org/guides/ It is completely modified library. We can do anything in this library.
1条答案
按热度按时间6za6bjd01#