问题:前端传给后台的数据是[["aa","2",3],["bb","3",4]]二维数组,PHP后台收到的却是字符串let arr = [["ll", 4], ["bb", 3]];let uid = sessionStorage.getItem('uid');this.$refs[formName].validate((valid) => { if (valid) { var params = new URLSearchParams(); params.append('is_iso', '1'); params.append('uid', uid); params.append('order',arr); this.$axios({ method: 'post', url:httpUrl.add_investment_project, data:params, }).then((res)=>{ console.log(res.data); if(res.data.errCode==0){ }else if(res.data.errCode==1){ this.$message.error(res.data.retData.msg); }else if(res.data.errCode==2){ this.$router.push('/login'); } }); } else { this.$message.error('error submit!!'); return false; }});
添加回答
举报
0/150
提交
取消