1.今晚被两个bug 困扰—第一个,小程序数组传递到PHP后台变成了字符串,导致解析失败
2.解决方法
小程序部分:
var that = this;
console.log(this.data.company);
console.log(this.data.company[1]);
var postdata = JSON.stringify(this.data.company);
console.log(postdata);
PHP部分:
$dataa = $_POST[‘data’];
a r r = j s o n d e c o d e ( arr = json_decode(