返回结果不显示 typeahead

Returning results not displayed with typeahead

我已经在 Whosebug 上查看了关于此 post 的所有解决方案,其中 none 解决了我的问题,

我已成功实施 typeahead.js,但我得到了正确的结果,但结果未显示在下拉列表中。

<input type="text" name="suggest" id="suggest" class="form-control input-lg" autocomplete="off" placeholder="type your message">

$(document).ready(function() {

    $('#suggest').typeahead({
        source: function(query, result) {
            $.ajax({
                url: "https://chat.synetal.com/Suggestion/getMsg",
                method: "POST",
                data: {
                    query: query
                },
                dataType: "json",
                success: function(data) {
                    result($.map(data, function(item) {
                        return item;
                    }));
                }
            })
        }
    })
});

我用 jquery 自动完成

From this URL i have completed this and its easy to impletment