checkbox post参数接收

checkbox 定义

<div class="check-box">
<label for="ck1">batchInsert:label><input type="checkbox" id="ck1" checked
                                            name="ckFn" value="batchInsert" >
div>
<div class="check-box">
<label for="ck2">countOne:label><input type="checkbox" id="ck2" checked
                                         name="ckFn" value="countOne" >
div>
<div class="check-box">
<label for="ck3">selectOne:label><input type="checkbox" id="ck3" checked
                                          name="ckFn" value="selectOne" >
div>
<div class="check-box">
自定义方法名: <input type="text" name="ckFn">
div>

在这里插入图片描述

post 对象里定义接收参数名称

private String[] ckFn;

checkbox post参数接收_第1张图片

你可能感兴趣的:(Java项目,java)