Commit 6d2b9608 authored by JingChao's avatar JingChao

Updates angular/hlsHttp.md

Auto commit by GitBook Editor
parent cfcc1776
......@@ -6,13 +6,14 @@ APP的开发模式采用前后台完全分离的开发模式,前端代码中
* 1.2 post 方法返回的是 promise 对象,需要传递 url 与 paramter 对象,此方法默认还会带上登录接口返回的 user_id 与 access_token (用于校验用户有没有登录),以下为post方法调用实例。
```javascript
//品牌下拉框初始化
function car_bind() {
offsize = 1;
var url = baseConfig.basePath + 'hls_car_bind';//接口地址
var param = {
"offsize": offsize,
};
hlsHttp.post(url, param).success(function (res) {//品牌下拉框初始化
hlsHttp.post(url, param).success(function (res) {
if (res.result == 'S') {
vm.brands = res.brand_id_list;
} else if (res.result == 'E') {
......
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