我發現如何在超時時設置功能。但它不在這個JQUERY函數中工作。請幫助我。這裏去jquery代碼:如何在超時時設置Jquery函數?
$(function() {
var $wrapper= $('#fc-wrapper'),
$handle = $wrapper.children('div.fc-handle-pull');
$(function(event) {
($handle.data('opened')) ? close() : open();
});
$wrapper.hammer().bind('dragend', function(event) {
switch(event.direction) {
case 'right': open(); break;
case 'left': close(); break;
}
});
function open() {
$wrapper.addClass('fc-wrapper-open');
$handle.data('opened', true);
}
function close() {
$wrapper.removeClass('fc-wrapper-open');
$handle.data('opened', false);
}
});
請告訴我如何在超時設置此功能。在此先感謝
你能告訴我們你的嘗試嗎? – bcap
'$(function(event){$ {handle.data''沒有意義讓jQuery包裝它 – epascarello
你想要暫停嗎? – epascarello