一只甜甜圈
var a=document.createElement("a"); a.innerHTML=obj[row].title; var br=document.createElement("br"); domobj.appendChild(br); //Chrome 亲测无效!! a.href="vote.php?action=voteInfo&id="+obj[row].id; //Chrome 亲测无效!! a.setAttribute("href","vote.php?action=voteInfo&id="+obj[row].id); domobj.appendChild(a); //这样写