Twitter引导提前输入组件未出现建议关键字

时间:2019-02-28 02:47:58

标签: c# asp.net-mvc typeahead.js

我正在使用带有typeaheadjs的Twitter引导程序组件。在遵循一些关于StackOverflow的教程之后。我的建议关键字未出现。我正在使用远程方法通过控制器调用JSON数据。在chrome开发工具上,数据显示为HTML格式,但数据为空。

这是我的控制人

[[!mpLogPageView]]

这是mycshtml

[[mpResources]]

对于cshtml文件中的JScript

public JsonResult JsonSenaraiPenilai(string query)
    {
        List<Penilai> senaraiPenilai = eDB.GetListPenilai();
        return Json(senaraiPenilai, JsonRequestBehavior.AllowGet);

    }

0 个答案:

没有答案