fx2*_*x23 2 jquery-ui progress-bar
我想使用jQuery进度条,仅在页面加载时才将其添加到页面顶部(然后使其消失),这种行为在某种程度上类似于GitHub中的进度条:
我怎样才能做到这一点?
我目前有以下HTML代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
</head>
<body>
<div id="content">
<div id="progressbar"></div>
<div id="my-content">
My page content goes here....
</div>
</div>
</body>
Run Code Online (Sandbox Code Playgroud)
Javascript:
$('#progressbar').progressbar({
value: false
});
Run Code Online (Sandbox Code Playgroud)