<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$.ajax({
type : "POST",
url: "data.json",
xhrFields : {
withCredentials : true
},
dataType: 'json',
success: function(json){
console.log(json);
}
})
})
</script>
ajax 请求
最新推荐文章于 2024-10-01 23:08:35 发布