ajax
kindCoder
be a kind person!
展开
-
ajax——发送不同格式的请求数据
1.上传formData格式数据 var params = new FormData(); params.append("id", "1"); params.append("name", "cd"); $.ajax({ url: "xxx", type: "POST", data: params, processData: false, contentType: f原创 2018-09-28 11:20:12 · 2246 阅读 · 0 评论 -
axios——post传参
要传递的参数是: username:'admin' password:'111111' 方法一: var params = new URLSearchParams(); params.append('username', username); params.append('password', password); this.$axios({ ...原创 2018-09-28 11:24:03 · 3321 阅读 · 0 评论