【发布时间】:2020-07-20 21:46:13
【问题描述】:
我有两个如下所示的函数:
function functionOne(par1, par2, par3) {
// this functions patches using an api, re-usable
}
function functionTwo(par2) {
functionOne(par1, par2, par3);
functionOne(par1, par2, par3);
functionOne(par1, par2, par3);
functionOne(par1, par2, par3);
}
这按预期工作,但如果用户按下按钮并且 functionTwo 成功运行或出现错误,我想给用户一些反馈。
我发现了这个:https://www.w3schools.com/howto/howto_js_snackbar.asp 这是我想要的,而不是弹出窗口,但是是否可以在成功或错误后显示它,如果可以,如何显示?谢谢!
【问题讨论】:
-
我不确定你在问什么?您是想知道是否可以集成它(答案是肯定的)还是在寻找有关如何设置它的指导?
-
我的错;设置指南
标签: javascript html toast snackbar