Vscode preview on Web Server 的一个坑
2017-06-27 11:22
459 查看
Vscode preview on Web Server 的一个坑
preview on Web Srever 个人认为是一个非常好用的插件,他可以让你预览的web界面同步手机,浏览器,互相同步,达到非常好的测试效果。。。但是,如果你的同步出现问题,你可以看看是不是因为这个原因导致的。。我最近在使用的时候出现了这么一个问题,就是手机打开页面之后,可以正常执行js代码,但是滑动屏幕和电脑浏览器中的内容却没有办法做到同步,纠结了一天,找了各种原因,终于发现原来是少的这么一行代码,一行很正常,正常到我都忽略了的代码、
没错,就是这一行 就是这一行代码,作为一个业余的前端,很少会去写这一行代码,但如果要是你出现了不能同步滑动这个问题,可以看看你的文件是不是有这一行代码。。
同时,也算是得到了一个教训,有时候一些代码习惯是多么的重要,能够为你节省多少不必要的时间,,
相关文章推荐
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
- VS中一个解决方案有多个Web网站.如何不启动全部asp.net development server(WEB服务器)
- vs 2008 sp1 - Unable to start debugging on web server. An authentication error occurred...
- 用VSCode开发一个基于asp.net core 2.0/sql server linux(docker)/ng5/bs4的项目(3)
- 用VSCode开发一个基于asp.net core 2.0/sql server linux(docker)/ng5/bs4的项目(1)
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The s
- ASP.Net DebugError解决方案[转]:Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- FCKeditor 一个开源的web页面文本编辑工具,在vs 2005中的使用方法
- Unable to start debugging on the web server. The project is not configured to be debugged.
- Unable to start debugging on the web server
- VSNETcodePrint 2005 & SQL ServerPrint 2005
- ASP.NET development server failed to start listening on port (dynamic port) & Error Unable to connect to Visual Stutio's localhost web server
- unable to start debugging on the web server iis does not list an application that matches the launched url
- How to use Trusted Connection when SQL server and web Server are on two separate machines.
- Unable to start debugging on the web server. Logon failure: unknown user name or bad password(web服务器无法启动调试:未知用户名或密码错误)
- VS2005web应用程序项目教程(2)Code-Behind with VS 2005 Web Application Projects
- [翻译]使用少于500行的代码创建一个webserver