0

我在复选框单击事件上调用 ajax 函数。

它工作正常,但是当我快速检查复选框时,它不会正确调用 ajax 函数。

请建议..

jQuery ajax 调用

function tickComparator(prlCode,pgGrp)
 {
    jQuery.ajax({
        url: path+"resultInfo.do?method=comparator&detailPage=false&pgGrp="+pgGrp+"&pssrPrlCode="+prlCode+"&showComparator=true&cntTick="+cntTick+"&x=" + (new Date()).getTime(),
        noCache:true,
        success: function(data, textStatus, jqXHR) {
        jQuery("#compare-panel").html(data);
        },
        error : function(jqXHR, textStatus, errorThrown)
        {}
        });
        }
        });
 }

<a onclick="tickComparator(<bean:write name="results2" property="pssrPrlCode"/>,'<bean:write name="results2" property="pgGrp"/>')"/>

<div id="compare-panel">
</div>
4

0 回答 0