码迷,mamicode.com
首页 > 其他好文 > 详细

ifram-locatione页面跳转

时间:2017-01-06 12:36:41      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:.ajax   timeout   window   pos   order   cti   页面   ntb   success   

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

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 = data;
}
})

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

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

ifram-locatione页面跳转

标签:.ajax   timeout   window   pos   order   cti   页面   ntb   success   

原文地址:http://www.cnblogs.com/yanxiaoyanyan/p/6255568.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!