1.可以通过javascript拼接方式:
var ifr = "<ifr"; ifr += "ame width='100%' height='600' class='share_self' frameborder='0' scrolling='no' src=''></ifr"; ifr += "ame>"; $("#tmp").after(ifr);
2.使用使用createElement
var iii = document.createElement('iframe'); iii.src = ''; iii.height = 600; iii.width = '100%'; iii.className = 'share_self'; iii.scrolling = 'no'; $("#tmp").after(ifr);
标签:tmp,ifr,网站,after,var,iframe,引入,iii From: https://www.cnblogs.com/mo3408/p/17121586.html