问题重现:
for(j = 0,len=transfer_list.length; j < len; j++) {
arguments = transfer_list[j].seatID;
transfer('+arguments+');
}
function transfer(arguments) {
console.log(arguments);
}
报错:
VM3015:1 Uncaught ReferenceError: XXL500 is not defined
at <anonymous>:1:43
ERROR:"Script error."
解决:JS传递参数需要加引号
for(j = 0,len=transfer_list.length; j < len; j++) {
arguments = transfer_list[j].seatID;
transfer(\"'+arguments+'\");
}