$(...)。pickatime不是angularjs中的函数

时间:2017-11-09 10:58:35

标签: jquery angularjs

我有一个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

1 个答案:

答案 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

https://github.com/Dogfalo/materialize/issues/5467