1

我正在使用 Jquery datetimepicker(js/timepicker.js) 并在以下 javascript 文件的扩展方法中收到错误“datepicker._defaults' is null or not an object”

加载 timepicker.js 文件时出现错误。javascript 文件中未定义“datepicker”对象。

===================timepicker.js===============
    /**
     * Extending default values
     */
    $.extend($.datepicker._defaults, {
        'stepMinutes': 1, // Number of minutes to step up/down
        'stepHours': 1, // Number of hours to step up/down
        'time24h': false, // True if 24h time
        'showTime': false, // Show timepicker with datepicker
        'altTimeField': '' // Selector for an alternate field to store time into
    }); 
4

1 回答 1

5

you need to include first "jquery-ui-1.7.2.custom.min.js" after that include "timepicker.js" file

于 2012-08-27T11:34:52.267 回答