This commit is contained in:
zuiidea
2016-10-25 21:09:50 +08:00
parent d20c0ddb26
commit 3081a9d4b9
8 changed files with 0 additions and 19 deletions
-5
View File
@@ -56,11 +56,6 @@ npm i
开发:
```bash
npm start # 使用dora-plugin-proxy产生代理服务器
```
或者
```bash
npm run dev # 使用mock拦截请求,数据存储在localStroge里
```
View File
View File
View File
-14
View File
@@ -1,19 +1,5 @@
const Ajax = require("robe-ajax")
function parseJSON(response) {
return response.json()
}
function checkStatus(response) {
if (response.status >= 200 && response.status < 300) {
return response
}
const error = new Error(response.statusText)
error.response = response
throw error
}
/**
* Requests a URL, returning a promise.
*