<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> $.ajax({ type:"post", url:"http://192.168.0.63:81/api/activity/app/getActivityDetail?token=1&userId=1&sign=1", //填写接口地址 contentType:‘application/json‘, data:JSON.stringify({ activityId:1 }), // dataType: "json", //可选项 success: function(data){ console.log(data) } }); </script> </body>
时间: 2024-10-10 18:24:20