两种应该都能删
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
fetch('https://linux.do/follow/{待取关用户ID}.json', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'X-CSRF-Token': csrfToken, // 使用动态获取的 CSRF token
},
credentials: 'include'
})
14 个赞
能详细说下第一种要怎么操作吗?
15 个赞
是我的帖子欸
