var addd = document.getElementsByClassName("add");
for(var n=0;n<addd.length;n++){
addd[n].onclick=function(){
var j = document.getElementsByClassName("count-input")[n];
var h = parseInt(j.value)
j.value=h+1;
}
有反应呀