当前位置:网站首页>Create a dojo progress bar programmatically: Dojo ProgressBar
Create a dojo progress bar programmatically: Dojo ProgressBar
2022-07-03 12:51:00 【superfreak】
<!DOCTYPE html>
<html >
<head>
<link rel="stylesheet" href="claro.css">
<script>dojoConfig = {parseOnLoad: true}</script>
<script src='dojo/dojo.js'></script>
<script>
require(["dijit/ProgressBar", "dojo/_base/window", "dojo/domReady!"], function(ProgressBar, win){
var i = 0;
var myProgressBar = new ProgressBar({
style: "width: 300px",
maximum: 100,
value:36,
},document.getElementById("div2"));
myProgressBar.startup();
/*code like these
var theBar = new ProgressBar({
id: "testBar",
width: 400,
maximum: 256,
duration: 2000,
dir: dir,
report: function(percent){
return string.substitute("${0} out of ${1} max chars", [this.get('value'), this.maximum]);
}
}, dom.byId("testBar"));
*/
/*var myProgressBar = new ProgressBar({
style: "width: 300px",
maximum: 100,
value:36,
}).placeAt(win.body()).startup(); */
/*setInterval(function(){
myProgressBar.set("value", i++ % 100);
}, 100);*/
});
</script>
</head>
<body class="claro">
<div id="div1"> div1</div>
<div id="div2">div2 </div>
<div id="div3"> div3</div>
</body>
</html>边栏推荐
- Solve the problem of VI opening files with ^m at the end
- 十条职场规则
- Kung Fu pays off, and learning is done
- Public and private account sending prompt information (user microservice -- message microservice)
- 剑指Offer09. 用两个栈实现队列
- 【数据挖掘复习题】
- 【习题七】【数据库原理】
- Sword finger offer05 Replace spaces
- [ArcGIS user defined script tool] vector file generates expanded rectangular face elements
- ORM use of node -serialize
猜你喜欢

强大的头像制作神器微信小程序

Node.js: express + MySQL的使用

ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍

剑指Offer10- I. 斐波那契数列

Harmonic current detection based on synchronous coordinate transformation

Public and private account sending prompt information (user microservice -- message microservice)

Sword finger offer06 Print linked list from end to end

Integer case study of packaging

Eureka自我保护

Glide question you cannot start a load for a destroyed activity
随机推荐
Solve the problem of VI opening files with ^m at the end
The latest version of blind box mall thinkphp+uniapp
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
OpenStack节点地址改变
Huffman coding experiment report
Do you feel like you've learned something and forgotten it?
How to get user location in wechat applet?
Swift return type is a function of function
阿里大于发送短信(用户微服务--消息微服务)
Social community forum app ultra-high appearance UI interface
Applet wxss introduction
2021 autumn Information Security Experiment 1 (password and hiding technology)
Ten workplace rules
Define a list, store n integers, and calculate the length, maximum value, minimum value and average value of the list
Pytext training times error: typeerror:__ init__ () got an unexpected keyword argument 'serialized_ options'
TOGAF认证自学宝典V2.0
基于Linu开发的项目视频
Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)
剑指Offer05. 替换空格
Dix règles de travail