早就听说这个插件了,今天用了一下,确实挺方便的。通过把配置文件创建为 Gist 上来实现了 VS Code 设置的同步,下次换电脑或重装时就很便利了。在插件商店搜索 Settings Sync 然后安装,重载窗口,打开命令面板,输入 sync 即可查看所有相关命令。
概述
在项目中要实现动态数据交互,就要用到接口请求插件 vue-resource,它不是 Vue 官方维护的插件,但是使用是最多的,它可以通过 XMLHttpRequest 或 JSONP 发起请求并处理响应。vue-resource 有非常简洁的 API,还提供了非常有用的 inteceptor(拦截器)功能,使用 inteceptor 可以在请求前和请求后附加一些行为,比如使用 inteceptor 在 ajax 请求时显示 loading 界面。下面我们就要了解一下吧。
项目地址:https://github.com/pagekit/vue-resource
本文将讨论 angularjs 开发的一些基本准则。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.