这个错误就是你的js写的" "有问题
例如:
var url1 ="https://localhost:8080/zzhpro/servlet/AddToCar?id="+arr[i].id;
html2 = html2 + "<button onclick='addToCar("+url1+")'>加入购物车</button></div>";var url1 ="https:这个错误就是你的js写的" "有问题
例如:
var url1 ="https://localhost:8080/zzhpro/servlet/AddToCar?id="+arr[i].id;
html2 = html2 + "<button onclick='addToCar("+url1+")'>加入购物车</button></div>";var url1 ="https: