iOS 7升级后无法在phonegap应用中选择未来日期

时间:2013-10-16 06:23:43

标签: ios cordova datepicker ios7

我正在使用适用于iOS的手机间隙日期选择器插件,它工作正常,但无法在iOS7升级后选择未来日期。 这是我的js代码,

     // Handling for iOS and Android
$('.appointmentTime').on('click', function(e) {
       var currentField  = $(this);
        window.plugins.datePicker.show((function() {
            var o = {
                date: new Date(),
                mode: 'time', // date or time or blank for both
                allowOldDates: true
            };
            if (myConfig.deviceType === myConfig.deviceTypeEnum.IOS) {
                o.allowFutureDates = true;
            }
            return o;
        })(), function(returnDate) {
            var selectedDate;
        selectedDate = new Date(returnDate);   
            currentField.blur();
        });
}

0 个答案:

没有答案