Ibatis 根据id数组做批量操作
在页面有id的checkbox,选择后,经过js处理,传给action一个ids(id字符串),action中截取ids,获得id的数组,然后根据id数组做批量操作。
?
页面:
?js处理checkbox:
<delete id="deletes">delete tb_table where id in (<iterate conjunction=",">#[]#</iterate>) </delete>