Comments (5)
from vue2.
好吧,是我**了。顺便问你个问题。vue-resourse取回的数据是blob,这应该怎么解析成json。数据是我们公司的开发测试环境数据
如下图:
代码如下,为何排版不对
https://segmentfault.com/n/1330000007936015
from vue2.
vue-resourse
的Promise回调里有提供3个方法
Method | Type | Description |
---|---|---|
text() | Promise |
Resolves the body as string |
json() | Promise |
Resolves the body as parsed JSON object |
blob() | Promise |
Resolves the body as Blob object |
你可以试试blob()
或者text()
看看
你的segmentfault地址我没权限查看0.0
不过,多谢你的关注拉!
from vue2.
都试过了,然而并没有什么卵用,好像是后台的问题,明天找后台玩玩。
from vue2.
哈哈,可以的
from vue2.
Related Issues (10)
- npm run article -- -r 报错 HOT 1
- 好漂亮啊 HOT 3
- npm run dev/npm run article -- -r 报错 HOT 7
- 好看 HOT 3
- 请问 HOT 1
- npm 依赖error HOT 5
- 请问 HOT 1
- 一个小小的疑问。 HOT 1
- 请问大哥你这个怎么运行不了呢?? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue2.