react中使用Woker线程发送异步ajax请求
简单封装使用1 创建wokerconst workercode = () => { this.onmessage = function (e) { let that = this; let params = JSON.parse(e.data); if (params.type === "xhr") { let xhr = new XMLHttpRequest(); xhr.open(params.method, para