Initialise JQuery Date Picker

前端 未结 1 1746
醉酒成梦
醉酒成梦 2021-01-25 19:57

I have the following code

$.datepicker.setDefaults({ dateFormat: \'dd/mm/yy\' });

  var searchStartDate = moment(($(\'#searchStart\')).datepicker(\'g         


        
相关标签:
1条回答
  • 2021-01-25 20:36

    It looks like you have the jQuery declaration file but not the jQuery UI declaration file. It's available here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jqueryui

    Edit: Modern TypeScript development is installing packages through npm rather than downloading files manually. Install the declaration file with npm install --save @types/jqueryui.

    0 讨论(0)
提交回复
热议问题