mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-04 16:38:54 +08:00
更新test.html
This commit is contained in:
parent
91d997c6c6
commit
25e9206efb
@ -22,6 +22,9 @@
|
||||
}
|
||||
$.ajax({
|
||||
url: `http://localhost:${port}/login/cellphone?phone=${phone}&password=${password}`,
|
||||
xhrFields: {
|
||||
withCredentials: true //关键
|
||||
},
|
||||
success: function(data) {
|
||||
console.log(data)
|
||||
$.ajax({
|
||||
@ -43,7 +46,8 @@
|
||||
})
|
||||
|
||||
axios({
|
||||
url: `http://localhost:${port}/login/cellphone?phone=${phone}&password=${password}`
|
||||
url: `http://localhost:${port}/login/cellphone?phone=${phone}&password=${password}`,
|
||||
withCredentials: true //关键
|
||||
}).then(function(res) {
|
||||
console.log(res.data)
|
||||
axios({
|
||||
|
Loading…
x
Reference in New Issue
Block a user