Home >Web Front-end >JS Tutorial >jquery gets loop tag copy

jquery gets loop tag copy

巴扎黑
巴扎黑Original
2016-11-25 14:34:281593browse

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); 
        } 
      } 
});

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn