版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xutongbao/article/details/87288569
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,height=device-height">
<title>NProgress</title>
<script src='https://unpkg.com/[email protected]/nprogress.js'></script>
<link rel='stylesheet' href='https://unpkg.com/[email protected]/nprogress.css'/>
</head>
<body>
<script>
NProgress.start()
setTimeout(function() {
NProgress.done()
}, 2000)
</script>
</body>
</html>
https://github.com/rstacruz/nprogress