JavaScript error in Browser-Link

后端 未结 2 1060
一向
一向 2021-02-19 01:52

I am working on a project that a former colleague has made. If I run this ASP MVC 4 application in Firefox everything works fine but, when I run it on Internet Explorer 9 I get

相关标签:
2条回答
  • 2021-02-19 02:28

    I imagine that you're using Visual Studio 2013? If so, there's a new feature called Browser Link, it's enabled by default. I just upgraded to VS2013 as well and I'm getting a lot of errors related to Browser Link, when I disable it everything works perfectly.

    Here's some more information about Browser Link and how to disable it: http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

    0 讨论(0)
  • 2021-02-19 02:40

    One possible reason, duplication of jQuery file. As you incldued jQuery file twice which cause conflict and jQuery stops working:

    <script type="text/javascript" src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="~/Scripts/perso.js"></script>
    <script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>
    

    so replace it with:

    <script type="text/javascript" src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="~/Scripts/perso.js"></script>
    
    0 讨论(0)
提交回复
热议问题