【发布时间】:2018-07-28 13:22:34
【问题描述】:
我在构造函数上绑定了一个react 函数,该函数在单击“更新”按钮时被调用。在该更新方法中,我想做一个类似这样的简单 HTTPS 获取请求
xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET","https://test", true)
xmlHttp.send(null)
enter code here
但我想在它执行此操作时打开一个新标签 我没有导入 Axios 或其他任何东西。
【问题讨论】:
标签: javascript reactjs react-native https httprequest