首先是点击事件
var btn = '<a class="editcls" onclick="editRow(\''+rec.tiName+'\')"href="javascript:void(0)">排考</a>';
/** 跳转到排考*/
function editRow(tiName){
//alert(title);
console.log("editRow");
console.log(tiName);
$('#rightP').panel({
title:'排考',
href:'yyj/pk?tiName='+tiName,
left:0,
collapsible:false
});
}
/*排考*/
@RequestMapping("/pk")
public String yyj_pk(HttpSession session,HttpServletRequest request,HttpServletResponse response) throws UnsupportedEncodingException{
System.out.println("ControllerColumnitem - yyj_pk");
System.out.println("tiName="+request.getParameter("tiName"));
session.setAttribute("tiName",request.getParameter("tiName"));
session.getAttribute("tiName").toString();
// String tiName=(String)request.getAttribute("tiName");
return "yyj_ksxxwh/pk";
}
最后在下一个页面接收值 但是出现了乱码 该如何解决啊