jQuery getJSON() 方法
- 2018-01-08 11:02:00
- admin 原创
- 413
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>源宝教程</title> <script src="/jquery/jquery-1.11.1.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $.getJSON("/jquery/demo_ajax_json.js",function(result){ $.each(result, function(i, field){ $("div").append(field + " "); }); }); }); }); </script> </head> <body> <button>获取 JSON 数据</button> <div></div> </body> </html>
文章分类
联系我们
电话: | 18902328227 |
---|---|
Email: | 2689701946@qq.com |
QQ: | 2689701946 |
微信: | 18902328227 |
地址: | 广州番禺区繁华路 |