前端的代码是这么写的: 1、对象空检查并执行 iframe && iframe.attr("src", url); 2、超链不跳顶部 <a href="###" οnclick="doSomeThing()">test</a>