日期:2014-05-19 浏览次数:20878 次
//判断用户是否已经购买了此奖牌,购买了才能继续操作 jp =pm.SelectJp(); if(jp==null){ return "false1"; } int jiwu =pm.SelectIFShow(); if(jiwu==0){ pm.UpdateGP1(); }else{ //若用户已经隐藏,这无法再次隐藏 request.setAttribute("errorMessage","错误信息"); return "false2"; }
<script type="text/javascript"> var errorMsg="${requestScope.errorMessage}"; if(errorMsg!=""){ alert(errorMsg); } </script>
<li><div class="box"><h2>天使之星</h2><div class="content"></br><img src="img/power/2.gif" width="80" height="80" /> <div class="an"> <a href=/JWT/hide?userpower=8 class="input_button mabtn">隐藏</a> <a href=/JWT/show?userpower=8 class="input_button mabtn1">显示</a> </div></div></div></li>
window.onload=function(){ var errorMsg="${requestScope.errorMessage}"; if(errorMsg!=""){ alert(errorMsg); } }