課程
/前端開發(fā)
/WebApp
/移動端的WEB相冊
手機上左右滑動無效。清楚默認事件用了return false也無效。哪位大神知道,求教!
2014-10-31
源自:移動端的WEB相冊 3-9
正在回答
手機上怎么測試的??
我這樣就好了,?主要是?e.preventDefault() container.delegate('li',?'tap',?function?()?{ var?_id?=?cId?=?$(this).data('id'); loadImg(_id); document.addEventListener('touchmove',?stopPrevent,?false); }); function?stopPrevent(e)?{ e.preventDefault(); return?false; } var?lock?=?false; largeContainer.tap(function?(e)?{ $(this).hide(); document.removeEventListener('touchmove',stopPrevent,?false); })
火狐好像不認 webkitAnimationEnd
舉報
本課程通過一個移動端相冊案例,帶您一步步了解移動端框架
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2016-04-03
手機上怎么測試的??
2016-02-22
2014-12-23
火狐好像不認 webkitAnimationEnd