1つの方法を使用した後にクリックイベントの再バインドを取得するには?
$("#file").one("click", function(event)
{
// code works only one time as expected.
$(this).bind("click") // attempting to rebind it again after executing code but not binding again tested below.
});
上記の1つのメソッドをクリックする前に、クリックイベントが要素#fileに添付されていますが、1つのメソッドをクリックした後、以下のコードを使用してクリックイベントがアンバインドされていることを示しています
$(".viewAttachedEvents").click(function()
{
var eventFile = $._data(document.getElementById("file"),"events");
var File = JSON.stringify(eventFile);
alert("eventFile: "+File+");
});