標籤:
VS2013新增的Browser Link功能雖然“強大”,但我並不需要。
但預設是開啟的,會在頁面中自動添加如下的代碼,真是煩人!
<!-- Visual Studio Browser Link --> <script type="application/json" id="__browserLink_initializationData"> {"appName":"Firefox","requestId":"861592d477c64fd590b602a9f006c074"} </script> <script type="text/javascript" src="http://localhost:2968/f26bea4f8e6a45868431324e7994cd75/browserLink" async="async"></script> <!-- End Browser Link -->
如何幹掉Browser Link功能?還我乾淨的頁面代碼。
check the msdn blog:(even though I‘m not using vs
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx
. How do I turn off Browser Link?
You can uncheck “Enable Browser Link” and it will be turned off “ Browser Link” for all future requests made.
You can also use the following appsettings in your web.config file.
1. Set appSetting “vs:EnableBrowserLink” to “false ““. This will disable Browser Link.
2. Set debug= false in web.config file. This will also disable Browser Link. Note that debug= true is required for Browser Link feature to work.
收穫園豆: 20 回複 | akisann | 菜鳥二級 |園豆:252 | 2013-10-22 16:56
謝謝!通過點擊第1張圖中的Browser Link重新整理按鈕,取消“Enable Browser Link”的選擇搞定!
如何禁用Visual Studio 2013的Browser Link功能