我在下面有这段代码:
$("button").click(function(){
$("button").off('click'); //detach click for the button below
}
然后在<body>
标签中我在下面有这个按钮
<button>PLAY ANIMATION</button>
所以问题是我在哪里可以把这段代码放在下面?
$("button").bind('click'); // In other words I want to
//reattach the click event that I just disabled at some later point