Home  >  Article  >  Backend Development  >  我表单提交上传后怎么获得返回回来的结果?

我表单提交上传后怎么获得返回回来的结果?

WBOY
WBOYOriginal
2016-06-06 20:32:571153browse

客户端表单提交后 上传成功后是这样的
我表单提交上传后怎么获得返回回来的结果?
这个只是把返回的数据打印出来了,我在客户端应该怎么接收这个数据啊,麻烦帮我解答一下吧,最好说详细一点

回复内容:

客户端表单提交后 上传成功后是这样的
我表单提交上传后怎么获得返回回来的结果?
这个只是把返回的数据打印出来了,我在客户端应该怎么接收这个数据啊,麻烦帮我解答一下吧,最好说详细一点

<code>jQuery.ajax({
  url: '//up.qiniu.com',
  type: 'POST',
  dataType: 'json',
  data: {param1: 'value1'}
  success: function(data, textStatus, xhr) {
    var data = JSON.stringify(data);
    alert(data.name);
  }
});

</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn