我的iframe是一个子页面,但是我想从这个子页面跳转到登录页面,但是如果直接写window.location.href的话,登录页面会直接存在于父页面下,所以我们需要父页面直接跳转到登录页面,解决的办法很简单。
parent.location.href="{:url('index/login/index')}";
我的iframe是一个子页面,但是我想从这个子页面跳转到登录页面,但是如果直接写window.location.href的话,登录页面会直接存在于父页面下,所以我们需要父页面直接跳转到登录页面,解决的办法很简单。
parent.location.href="{:url('index/login/index')}";