为什么datepicker无法在angularJs代码中工作?

angular.element(document).find("#bidValidDateEdit").datepicker({
    dateFormat: 'mm/dd/yy',
    maxDate: $scope.evntDate,
    defaultDate: "+1w",
    changeMonth: false,
    numberOfMonths: 1,
    prevText: '<i class="fa fa-chevron-left"></i>',
    nextText: '<i class="fa fa-chevron-right"></i>',
    minDate: new Date()
});

I used angular.element() and also I tried with jQuery() but still its showing error errorImage

TypeError:angular.element(...)。find(...)。datepicker不是函数
评论