Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
chrome 的 chrome.extension.sendRequest 是否能够像 $.ajaxSetup 那样使用不同的值来处理请求或响应?
不,它没有。
无论如何 usingsendRequest已被弃用并被sendMessage. 许多人混淆了chrome 扩展和xhr 请求之间的消息传递。
sendRequest
sendMessage