js post json、object、application/json数据,Nodejs获取json数据

1、post数据结构:   data: { type: 'post', name: 'post发送json参数' }     2、js代码实现   var xhr = new XMLHttpRequest(); xhr.open('post', 'http://localhost:3000/post', true); xhr.setRequestHea
相关文章
相关标签/搜索