jQuery library location wants to be referenced differently on server

后端 未结 4 1220
再見小時候
再見小時候 2020-12-18 10:32

I\'ve got an ASP.NET MVC application that uses jQuery. To load the js libraries, I reference them like this:



        
4条回答
  •  温柔的废话
    2020-12-18 10:58

    The reason your code is working locally is because your local directory structure is different from your production directory structure.

    That being said I believe that an absolute path to any external resources (javascript, images, and stylesheets) is best.

提交回复
热议问题