这个编程不会诶
var main = document.body; //创建链接 function createa(url,text) { var ahref = document.createElement("a"); ahref.href = url; ahref.innerHTML = text; main.appendChild(ahref); } createa("http://www.immoc.com","慕课网");