<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<!--引入基本库-->
<script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.easyui.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.5.5.4/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="jquery-easyui-1.5.5.4/themes/default/easyui.css" />
<link rel="stylesheet" href="jquery-easyui-1.5.5.4/themes/icon.css" />
</head>
<body>
<div id="bar" class="easyui-progressbar" data-options="value:60" style="width: 30%;"></div>
<input type="button" value="开始" onclick="start()" />
<script type="text/javascript">
function start() {
var value = $("#bar").progressbar("getValue");
$("#bar").progressbar("setValue", value + 5)
}
</script>
</body>
</html>
easyUI入门《五、progressbar基础:进度条》
猜你喜欢
转载自blog.csdn.net/leijiahui/article/details/82353533
今日推荐
周排行