0
点赞
收藏
分享

微信扫一扫

类似于YouTube、Medium、知乎等网站使用的进度条插件 NProgress

guanguans 2022-07-01 阅读 71
<!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/nprogress@0.2.0/nprogress.js'></script>
<link rel='stylesheet' href='https://unpkg.com/nprogress@0.2.0/nprogress.css'/>
</head>

<body>
<script>
NProgress.start()
setTimeout(function() {
NProgress.done()
}, 2000)
</script>
</body>

</html>

​​https://github.com/rstacruz/nprogress​​


举报

相关推荐

0 条评论