<!DOCTYPE html> <html> <head> <meta charset="utf8"> <title>test jquery</title> <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> <script type="text/javascript"> $.ajax({ 'method':'post', 'url':'http://www.jfsc.com/index.php/api/manage/v1/platform/getList', 'data':'', 'success':function(data){ data=jQuery.parseJSON(data); console.log(data); } }); </script> </head> <body> </body> </html>
执行一下,并看看怎么回事