jquery ajax怎么通过header传递参数

2025-03-29 02:54:31
推荐回答(1个)
回答1:

$.ajax({
url: '/path/to/service',
method: 'GET | POST | PUT | DELETE',
headers: {
'Authorization': 'Bearer ',
'some-other-header': 'some value'
}
})