简体   繁体   English

Javascript 确认服务器上列表中的消息

[英]Javascript Confirm Message on List on the server

I have a List of employees on the backing bean, I want to loop on this list and display a javascript confirm message(yes/no) for each employee..我在支持 bean 上有一个员工列表,我想在这个列表上循环并为每个员工显示一条 javascript 确认消息(是/否)。

assume the employee class has id, name, salary attributes I want to display confirmation message (Are you sure to save employee with id=, name=,salary =) for each employee.. I need to know how to do this假设员工 class 有 id、name、salary 属性我想为每个员工显示确认消息(你确定用 id=、name=、salary = 保存员工)。我需要知道怎么做

It is not an actual use case that is a simple assumption because the actual one is complex to illustrate, just I need to Know the concept to do this..这不是一个简单的假设的实际用例,因为实际的用例很难说明,我只需要知道这个概念就可以了。

Thanks In Advance提前致谢

How about something similar to this:类似的东西怎么样:

for (i=0;i<employeeList.size;i++)
{
      alert([insert your data here]);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM