Post请求接口
Posted siyunianhua
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Post请求接口相关的知识,希望对你有一定的参考价值。
$.ajax({ url: ‘http://192.168.1.85:8080/api/System/Login‘, type: ‘post‘, contentType: "application/json; charset=utf-8", dataType: ‘json‘, data: JSON.stringify(loginData), success: function (data) { console.log(data.data); token = data.data; }, error: function (data) { console.log("error"); } });
以上是关于Post请求接口的主要内容,如果未能解决你的问题,请参考以下文章