onclick事件 在使用模板填充情况下 向后台传递多值
author:myzhai
- jsp页面
<td><a class="btn btn-sm btn-xs btn-info" href="javascript:void(0);" onclick="showDetail('{{value.applyId}}','{{value.flowType}}')"> 查看</a></td>
- js
function showDetail(applyId, applyType) {
location.href = "/apply!hrefDetail?applyId=" + applyId + "&applyType=" + $.trim(applyType).substring(5);
}