关卡详解
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>javascript-lesson-1.2</title>
<link rel="stylesheet" href="http://qiniu.shijiajie.com/blog/javascript-lesson/1.2/layer.css">
</head>
<body>
<script src="http://qiniu.shijiajie.com/blog/javascript-lesson/1.2/layer.js"></script>
<script>layer.open({ type: 2, shadeClose: false });</script>
本页面用来测试 <script> 加载顺序~
<script src="http://qiniu.shijiajie.com/blog/javascript-lesson/1.2/external.js"></script>
<script>setTimeout(function(){ layer.closeAll(); },500);</script>
</body>
</html>