Ama㊑zeUI 载入进展条的完成实例

2021-03-23 22:03 jianzhan

文中关键详细介绍了AmazeUI 载入进展条的完成实例,共享给大伙儿,实际以下:

<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>载入进展条</title>
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="assets/ie8/jquery.min.js"></script>
<script src="assets/ie8/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
</head>
<body style="margin: 10px;">
<!--基本应用-->
<button id="np-s" class="am-btn am-btn-primary">$.AMUI.progress.start();</button>
<button id="np-d" class="am-btn am-btn-success">$.AMUI.progress.done();</button>
<script>
$(function(){
  var progress = $.AMUI.progress;
  $('#np-s').on('click', function() {
    progress.start();
  });
  $('#np-d').on('click', function() {
    progress.done();
  });
}); 
</script>
<br><br>
<!--高級应用-->
<button id="np-set" class="am-btn am-btn-primary">$.AMUI.progress.set(0.4);</button>
<button id="np-inc" class="am-btn am-btn-warning">$.AMUI.progress.inc();</button>
<button id="np-fd" class="am-btn am-btn-success">$.AMUI.progress.done(true);</button>
<button id="np-status" class="am-btn am-btn-danger">$.AMUI.progress.status;</button>
<script>
$(function(){
  var progress = $.AMUI.progress;
  $('#np-set').on('click', function() {
    progress.set(0.4);
  });
  $('#np-inc').on('click', function() {
    progress.inc();
  });
  $('#np-fd').on('click', function() {
    progress.done(true);
  });
  $('#np-status').on('click', function() {
    $(this).text('Status: ' + progress.status);
  });
}); 
</script>
</body>
</html> 

实际效果图:

 

到此这篇有关AmazeUI 载入进展条的完成实例的文章内容就详细介绍到这了,大量有关AmazeUI 载入进展条內容请检索脚本制作之家之前的文章内容或再次访问下边的有关文章内容,期待大伙儿之后多多的适用脚本制作之家!