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

WBOY
Release: 2016-06-06 20:32:57
Original
1200 people have browsed it

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

回复内容:

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

<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>
Copy after login
Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template