MVC 4 Razor Object doesn't support property or method 'dataTable'

后端 未结 3 1494
梦毁少年i
梦毁少年i 2021-01-24 18:46

I\'m a noob to MVC, jquery and DataTables. I get a Microsoft Visual Studio warning dialog when I hit F5 to build and bring up the site locally for development/debug:

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-24 19:33

    I think you may have a try to comment these lines out:

    @Scripts.Render("~/bundles/jquery")

    @RenderSection("scripts", required: false)

    which are at the end of "_Layout.cshtml" page.

    Hope it makes sense

提交回复
热议问题