laery.js提示层结束之后自动跳转到新页面

<!doctype html>
<html lang="en">
<head>
    
    <meta charset="UTF-8" />
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="layer_mobile/need/layer.css"/>
</head>
<body>
    
</body>
<script src="layer_mobile/layer.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
 layer.open({
 content: 'hello layer'
 ,skin: 'msg'
  ,time: 1//2秒后自动关闭
  ,end: function () {
location.href='http://www.baidu.com';
}
});

</script>

</html>


//添加end函数

posted @ 2017-05-03 10:54  i'mpossible  阅读(1492)  评论(0编辑  收藏  举报