install sublime server

If we right-click to open the html webpage in the browser, it is actually opened in the form of a file path , which makes many APIs inoperable. The best way is: open the html on the server.    

方法:Ctrl+shift+P  > install >sublime server 

   The first time the view in sublimeserver is opened, it is found that the file is not found:    this is because SublimeServer requires that the code file must be added to the Sublime Text project: Porject - Add Folder to Project - select your project folder.

   The second time I use view in sublimeserver to open the browser, the garbled characters appear: add charset="UTF-8" to the meta tag to solve the problem 


Reference: http://www.bubuko.com/infodetail-2218648.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325383074&siteId=291194637