`

appendchild

    博客分类:
  • js
 
阅读更多
var comment_list_iframe =  document.createElement("iframe");
					comment_list_iframe.setAttribute("src",list_iframe_url)
					comment_list_iframe.setAttribute("id","comment_list_iframe");
					comment_list_iframe.setAttribute("frameBorder","0");
					comment_list_iframe.setAttribute("scrolling","no");
						
					var div_contain = document.getElementById(contain_id);
					div_contain.appendChild(comment_list_iframe);

 appendChild(dom对象)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics