我有一个timepicker add但是这个TypeError:$(...)。pickatime不是函数
$('.timepicker').pickatime({
Default: 'now', // Set default time: 'now', '1:30AM', '16:30'
fromnow: 0, // set default time to * milliseconds from now (using with default = 'now')
twelvehour: false, // Use AM/PM or 24-hour format
donetext: 'OK', // text for done-button
cleartext: 'Clear', // text for clear-button
canceltext: 'Cancel', // Text for cancel-button
autoclose: false, // automatic close timepicker
ampmclickable: true, // make AM PM clickable
aftershow: function(){} //Function for after opening timepicker
答案 0 :(得分:0)
请在角度js中添加timepicker库
$('.timepicker').timepicker({ Default: 'now', // Set default time: 'now', '1:30AM', '16:30' fromnow: 0, // set default time to * milliseconds from now (using with default = 'now') twelvehour: false, // Use AM/PM or 24-hour format donetext: 'OK', // text for done-button cleartext: 'Clear', // text for clear-button canceltext: 'Cancel', // Text for cancel-button autoclose: false, // automatic close timepicker ampmclickable: true, // make AM PM clickable aftershow: function(){} //Function for after opening timepicker