得到它了!
window.onload=function(){ var ifrm = document.getElementById('newsframe'); var d=document.location.search; if(d!='')ifrm.src=d.substring(d.lastIndexOf('?')+1,d.length); }