需求:
html的radio根据需求选中,button onclick 跳转页面
实现:
html之radio选中:
<input type="radio" name="type" value="about" ${nav.type=='about'?'checked':''}>
button onclick 跳转页面:
<input class="csrbutton blue" type="submit" value="赋予角色" onclick="this.form.action='${basePath}usr/setroles?type=usr&id=${item.name}';">
也就是说基于submit实现,onclick时对其action赋值