[英]Confirmation Popup Node JS
I am looking to add a confirmation message to my application, if the user clicks submit then the action is performed else it cancels the event. 我希望向我的应用程序添加一条确认消息,如果用户单击“提交”,则执行该操作,否则将取消该事件。
I've got a route which is handled through express, but when the event is cancelled i don't want the back-end code to be run. 我有一条通过Express处理的路线,但是当事件取消时,我不希望运行后端代码。
Thanks in advance to anyone who can help :) 在此先感谢任何可以提供帮助的人:)
You should handle this confirmation logic in frontend part before sending request to backend. 在向后端发送请求之前,您应该在前端部分处理此确认逻辑。 This will simplify the architecture of your app
这将简化您的应用程序的架构
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.