如果报_changeDirection is not defined 错,可能是你没有定义iframe ,看看你的页面是否定义iframe
//定义
<div style="text-align:right">
<iframe id="listFrame" name="listFrame" style="width:0px;height:0px"></iframe>
</div>
//此处用到
$('#listFrame')[0].contentWindow.focus();