當嘗試點擊選項卡非常快兩個選項卡被選中Jquery SmartWizard.js插件我試過這種方式,但沒有運氣任何人經歷過這一點......也試過.on /.off
事件沒有運氣。當非常快速地點擊選項卡時,兩個選項卡的選擇
$($this.steps).bind("click", function (e) {
//e.stopImmediatePropagation();
$($this.steps).unbind("click");
if ($this.steps.index(this) == $this.curStepIdx) {
return false;
}
var nextStepIdx = $this.steps.index(this);
var isDone = $this.steps.eq(nextStepIdx).attr("isDone") - 0;
if (isDone == 1) {
_loadContent($this, nextStepIdx);
}
$($this.steps).bind("click");
return false;
});
你應該使用'反正on'阻塞UI解決的問題。 'bind'已過時。 –
我嘗試使用.on/.off事件,但在我提到的問題本身中沒有運氣。 –
正如我在聊天中提到的,即使它沒有解決您的直接問題,您也應該使用'on'而不是'bind'。 –