axios 发送json数据


var qs = require('qs'); axios.post(ajaxurl,qs.stringify({
  username:'zhangsan',
  age:'18' })).then(function(data){ alert(response.data); );

  

原文地址:https://www.cnblogs.com/MainActivity/p/9009184.html