Commit ab387518 authored by JingChao's avatar JingChao

Update hlsHttp.md

parent 99dec10b
......@@ -2,7 +2,7 @@
APP的开发模式采用前后台完全分离的开发模式,前端代码中必不可少进行调用接口进行数据交互。
* 1 `controller`中注入`hlsHttp`服务,此对象中主要包含`post``get`方法。
* 2 post 方法返回的是 promise 对象,需要传递 url 与 paramter 对象,此方法默认还会带上登录接口返回的 user_id 与 access_token (用于校验用户有没有登录),以下为post方法调用实例
* 2 post与get方法返回的是 promise 对象,post需要传递 url 与 paramter 对象,get只需 传递url,此方法默认还会带上登录接口返回的 user_id 与 access_token (用于校验用户有没有登录),以下为post方法调用实例
```javascript
//品牌下拉框初始化
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment