zoukankan      html  css  js  c++  java
  • progressbar

    easyui的progressbar用来声明元素为进度条

    <!DOCTYPE html>
    <html>
    <head>
    <title>jQuery Easy UI</title>
    <meta charset="UTF-8" />
    <script type="text/javascript" src="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/locale/easyui-lang-zh_CN.js" ></script>
    <link rel="stylesheet" type="text/css" href="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/themes/icon.css" />
    <script type="text/javascript">
        $(function(){
            $.fn.progressbar.defaults.value=0;
            $("#bar").progressbar({
                width : "200px",//默认为 auto
                height : 30,
                value : 30,
                text : "{value}%",
                onChange : function(newValue,oldValue){
                    console.log("当数值改变时 触发");
                }
            });
            console.log($("#bar").progressbar("options"));//获取属性对象
            $("#bar").progressbar("resize","390");//设置进度条额长度
            $("#bar1").progressbar("setValue","60");//设置进度值
            setInterval(function(){
                $("#bar").progressbar("setValue",
                    $("#bar").progressbar("getValue")+5);//获取进度值
            },200);
        })
    </script>
    </head>
    <body>
    <div id="bar1" class="easyui-progressbar"
    data-options="value:70" style=" 200px"></div>
    <div id="bar"></div>
    </body>
    </html>
  • 相关阅读:
    a标签上window.location.href无法跳转
    Directive指令的scope配置项使用说明
    Echarts 里面获取纵坐标刻度的间距
    使用 Supervsior 守护进程
    linux 下的快捷键操作
    前端必须掌握的 nginx 技能(4)
    在 vue 中用 transition 实现轮播效果
    前端必须掌握的 nginx 技能(3)
    前端必须掌握的 nginx 技能(2)
    前端必须掌握的 nginx 技能(1)
  • 原文地址:https://www.cnblogs.com/m01qiuping/p/6486350.html
Copyright © 2011-2022 走看看