brew install npm brew install node npm install create-react-app #查看配置相关 cat package.json # 启动 npm start
在控制台中使用,方便进行测试
fetch(url, {method:"POST", headers:{"Content-type":"application/json"}, body:myStr}).then(res => console.log(res))