Home > Web Front-end > JS Tutorial > jQuery's ajax and traversal array json example code

jQuery's ajax and traversal array json example code

高洛峰
Release: 2017-01-12 09:33:34
Original
1527 people have browsed it

jQuery’s ajax and array traversal json example code

jQuery.ajax({
      type: "POST",
      url: "server.json",
      dataType:'json',
      data: "",
      success: function(msg){
        var title = "";
        jQuery.each(msg,function(key,value){
          alert(value.ec_id+"  "+value.ec_title);
        })
      }
  });
Copy after login

The above jQuery ajax and array array json example code is all the content shared by the editor. I hope it can To give you a reference, I also hope that everyone will support the PHP Chinese website.

For more jQuery ajax and array traversal json example code related articles, please pay attention to the PHP Chinese website!

Related labels:
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