It's very strange, at first I thought it was caused by the Javascrip{filtering}t file or view file that Visual Studio 2013 added by default when creating a project, but I couldn't find it after looking for a long time, and after looking at the code under FireBug, I found the following code at the bottom of the page:
- <scrip{过滤}t id="__browserLink_initializationData" type="application/json">
- {"appName":"Firefox","requestId":"23b71f085f334e97969864ab934745c5"}
- </scrip{过滤}t>
- <scrip{过滤}t async="async" src="http://localhost:49925/4b38e516c0774211882dabde19ecda0f/browserLink" type="text/javascrip{过滤}t">
Copy code Then I searched for the name browserLink and found that browserLink is a new feature in Visual Studio 2013.
What is Browser Link?
The function of this Browser Link is to build a communication bridge between the flow and the Visual Studio IDE through a script file, and after enabling Browser Link, Visual Studio will inject an IHttpModule module object into the website, and then register a script on each page.
The Browser Link feature is implemented using SignalR technology.
With all that said, what exactly is the Browser Link function used for?
Now the Broswer Link function is relatively simple, it is used to refresh the page that has been opened in the browser in the Visual Studio IDE, why refresh the page in the Visual Studio IDE?
If you are developing a page that needs to be compatible with IE, GOOGLE, FIREFOX and mobile browsers, you may use these flowers to open your page at the same time, if you find some kind of problem, go back to VS IDE to modify it, and after the modification, you can click "Refresh Linked Browsers" in the Visual Studio IDE to refresh all browsers to see the effect.
Now this "Browser Link" only has such a refresh function, but the Browser Link function can be written as an extension function, and you can customize some of the functions you need.
If you don't want to use this feature, just add the following code under the appSettings node in web.config.
<add key="vs:EnableBrowserLink" value="false"/>
|