js前台中获取后台传的值

后台controller

String ifOffice = "yes";
req.setAttribute("ifOffice", ifOffice);

前台js接收

if(${ifOffice=='yes'}){
alert(1);
}

posted @ 2017-02-13 16:52  爱吐泡泡的小小鱼  阅读(8473)  评论(0编辑  收藏  举报