Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blog不能评论 #1

Closed
AimLuo opened this issue Dec 27, 2016 · 5 comments
Closed

blog不能评论 #1

AimLuo opened this issue Dec 27, 2016 · 5 comments

Comments

@AimLuo
Copy link

AimLuo commented Dec 27, 2016

话说你的博客怎么不能评论了。

@leenty
Copy link
Owner

leenty commented Dec 27, 2016

image
可以的呀,什么情况,你是翻墙了吗

@AimLuo
Copy link
Author

AimLuo commented Dec 27, 2016

好吧,是我傻逼了。顺便问你个问题。vue-resourse取回的数据是blob,这应该怎么解析成json。数据是我们公司的开发测试环境数据
如下图:
image

代码如下,为何排版不对
https://segmentfault.com/n/1330000007936015

@AimLuo AimLuo closed this as completed Dec 27, 2016
@AimLuo AimLuo reopened this Dec 27, 2016
@leenty
Copy link
Owner

leenty commented Dec 27, 2016

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

不过,多谢你的关注拉!

@AimLuo
Copy link
Author

AimLuo commented Dec 27, 2016

都试过了,然而并没有什么卵用,好像是后台的问题,明天找后台玩玩。

@leenty
Copy link
Owner

leenty commented Dec 27, 2016

哈哈,可以的

@leenty leenty closed this as completed Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants