结果先执行refreshFollowLogs,然后再执行action,因为refreshFollowLogs()就是一个执行结果。所以改成
就OK了,但我要传递的参数怎么办? 1.搞成全局变量 2.把οnsubmit="return validateCallback(this,refreshFollowLogs);"里的 refreshFollowLogs改成匿名函数。 3.把参数写到 refreshFollowLogs函数里。 我用第三种:
function refreshFollowLogs(){ var lType=${info.loginType},uId=${info.userId} $("#table-vipLogs").ajaxUrl({ type:"GET", url:"/weihu/site/coinsmgr/vip/loglist.xhtml?loginType="+lType+"&userId="+uId,callback:function(){ //$("#infoAdminSearch0-boxId").find("[layoutH]").layoutH(); } }); return false;}