SublimeServer插件安装和使用

匿名 (未验证) 提交于 2019-12-03 00:40:02

sublime默认打开的html文件使用的是file协议。

SublimeServer可以为我们启动静态服务器,这样就可以发送ajax请求,当然也可以直接打开我们html文件。


sublime3的安装和基本使用

Content-type:application/octet-stream

{     "attempts": 5,     "autorun": false,     "defaultExtension": ".html",     "interval": 500,     "mimetypes":     {         "": "application/octet-stream",         ".c": "text/plain",         ".h": "text/plain",         ".json": "application/json", // 增加支持json文件的打开方式         ".py": "text/plain"     },     "port": 8080  //端口号 }

{    "default_browser": "chrome"   }

  • 在index.html文件中右击选择 view in SublimeServer

原文:https://www.cnblogs.com/yimiflh/p/9280655.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!