sne*_*had 0 jquery html5 ios jquery-mobile cordova
嗨我正在使用JqueryMobile-1.3.0和Cordova-2.1.0 for iOS app.I我正在使用jqm datebox进行日期选择.一切正常但我想捕获日期框的关闭事件,因为我想要做什么时候日期框已关闭.如何做到这一点?
我给你一个有用的例子:http://jsfiddle.net/Gajotres/ktbcP/
这是您需要的代码:
$(document).on('pagebeforeshow', '#index', function(){
$('#mydate').on('datebox', function(e, p) {
if ( p.method === 'close' ) {
alert('DO SOMETHING');
}
});
});
Run Code Online (Sandbox Code Playgroud)
其他回调和事件可以在这里找到:http://dev.jtsage.com/jQM-DateBox2/demos/api/events.html
归档时间: |
|
查看次数: |
978 次 |
最近记录: |