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);
}

posted on 2017-07-11 19:04  wisdombud  阅读(210)  评论(0编辑  收藏  举报

导航