Maison >interface Web >js tutoriel >jquery获取循环标签复制
var id = getSearchObj().id;
var cxlx = flag== ""?"1":flag;
if(cxlx==1){//显示详细信息
$.ajax({
type:"post",
url: "/test/test.co",
data:"i_id="+id+"&i_cxlx="+cxlx,
success: function(data){
if(data.code=="1"){
var datas = data.resultSet;
var font = $(".font01");
$.each(font,function(i,e){
e.nextElementSibling.innerHTML=datas[0][e.innerHTML];
});
}else{
alert(data.message);
}
}
});