首页 > 代码库 > ifram-locatione页面跳转

ifram-locatione页面跳转

在涉及银行页面时,需要跳转到银行页面

var accound = document.getElemntById(‘accound‘);
$.ajax({
dataType:‘json‘,
type:‘post‘,
url:‘/user/updataCard.do‘,
data:accound,
timeout:300,
success:function(data){
      document.getElementById(‘ld-frame‘).contentWindow.location.href = http://www.mamicode.com/data;
}
})

页面显示
<div><input type=‘text‘ id=‘accound‘/></div>
<div class="ldwrap">

<iframe id="ld-frame" frameborder="0" width="100%" height="100%" src="http://www.mamicode.com/loading.html" scrolling="no"></iframe>
</div>

ifram-locatione页面跳转