jQuery flexdatalist的问题

时间:2019-07-25 13:26:01

标签: jquery angular7 datalist search-suggestion

我在jangle应用程序中将jquery flexdatalist用于输入建议。我添加了“ jquery-flexdatalist”:“ 2.2.4”,并在我的angular.json文件中添加了CSS和JS文件。但是,当我运行代码时,我得到的是普通数据列表作为建议而不是jquery flexdatalist,并且在控制台中出现错误,如下所示:

TypeError: $(...).flexdatalist is not a function
    at HistoryComponent.push../src/app/components/history/history.component.ts.HistoryComponent.ngOnInit (history.component.ts:312)
    at checkAndUpdateDirectiveInline (core.js:22099)
    at checkAndUpdateNodeInline (core.js:23363)
    at checkAndUpdateNode (core.js:23325)
    at debugCheckAndUpdateNode (core.js:23959)
    at debugCheckDirectivesFn (core.js:23919)
    at Object.eval [as updateDirectives] (HistoryComponent_Host.ngfactory.js? [sm]:1)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:23911)
    at checkAndUpdateView (core.js:23307)
    at callViewAction (core.js:23548)

0 个答案:

没有答案