jquery取框架当前的url 前提,当前frame无名或动态生成的; var url = eval($("#ifr1").attr("name")+".location.href;"); console.info(url);