Materialize.css自动完成不使用Polymer

Yah*_*man 6 javascript jquery materialize polymer polymer-1.0

我正在尝试使用Materialize.css自动完成我的Polymer项目.

控制台日志:

Uncaught TypeError: $(...).autocomplete is not a function
Run Code Online (Sandbox Code Playgroud)

我的代码:

<div class="input-field">
    <input type="text" id="assemp" class="autocomplete" value="{{emps::input}}">
    <label for="assemp">Assigned Employee(s)</label>
</div>
Run Code Online (Sandbox Code Playgroud)

脚本:

attached : function() {
            $('input.autocomplete').autocomplete({
                data: {
                    "Apple": null,
                    "Microsoft": null,
                    "Google": 'http://placehold.it/250x250'
                }
            });
        }
Run Code Online (Sandbox Code Playgroud)

ali*_*eza 5

 $(document).ready(function () {$('input.autocomplete').autocomplete({
            data: {
                "Apple": null,
                "Microsoft": null,
                "Google": null
            }});});
Run Code Online (Sandbox Code Playgroud)