ajax post 请求传参无效 总是传递formdata , 改type为button 使用serializeArray获取表单数据,仍然传递formdata 难道是默认的这样传参?怎么避免呢
axios({ method: "post", url: "https://wangzc.wang/smAddress", data: { address: '新疆阿克苏温宿县博孜墩柯尔克孜族乡吾斯塘博村一组306号 800-8585222 马云', }, }).then(function (res) {}).catch(function (err) {});
你是这么写的吗?
2.1m questions
2.1m answers
62 comments
56.5k users