<script> $.ajax({ type: 'GET',url: '<%=urls%>',dataType:'jsonp',data:{ "token" : '<%=token%>',"method" : '<%=method%>',
"appName" : '<%=appName%>',"secret" : '<%=secret%>',"dataType" : 'json',"dataParams" : '<%=dataParams%>',"sign" : '<%=sign%>' },jsonp:'jsonpcallback',error: function(XmlHttpRequest,textStatus,errorThrown){ alert("部门切换失败,请联系管理员!"); top.location.href = '/portal/mainFrame/frame.html'; },success: function(msg){
if(msg.code=="100"){ top.location.href = "clearToken.jsp?appName=<%=caAppName%>"; }else{ alert("部门切换失败,请联系管理员!\n错误代码:"+msg.code); top.location.href = '/portal/mainFrame/frame.html'; }
} });
</script>
String jsonp=request.getParameter("jsonpcallback"); return jsonp+"("+s+")";