layui跳转页面的方法是什么
在layui中,可以使用window.location.href
来实现页面跳转。例如:
window.location.href = 'http://www.example.com';
另外,layui还提供了一个快捷方法layui.router()
来实现页面跳转,例如:
layui.router().redirect({ url: 'http://www.example.com' });
阅读剩余
THE END
在layui中,可以使用window.location.href
来实现页面跳转。例如:
window.location.href = 'http://www.example.com';
另外,layui还提供了一个快捷方法layui.router()
来实现页面跳转,例如:
layui.router().redirect({ url: 'http://www.example.com' });