接口的使用:
接口会直接给你使用方法(接口示例)
发起ajax请求:
请求方式 get
有几个参数就传几个参数
$.ajax({
url: `http://www.xxxxxxx.php`,
type: 'get',
data: {
username,
password,
}
}).then(res => {
console.log(res)
})