jquery 循环字符串并赋值给一个变量

2025-03-07 03:06:49
推荐回答(2个)
回答1:

应该这么写:

var ment="";

$.each(data,function(i,e) {
ment +='';
});
alert(ment);

回答2:

一样的写法