⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listtest2.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<?xml version="1.0"?><!--	This is a memory test. Items are added and removed at runtime. Watch the	memory consumption to ensure that no memory leaks--><Application>	<Window caption="List Test" width="400" height="500" centered="true"/>	<Resources>		<Script><![CDATA[function ListTest2() {	var d0 = new Date;	var win = application.getWindow();	var l1 = new BiList;	var addTimer = new BiTimer(10);	var removeTimer = new BiTimer(1000);	var li;	l1.setLocation(5, 5);	l1.setRight(5);	l1.setBottom(5);	for (var i = 0; i < 10; i++) {		li = new BiListItem("Item " + i);		l1.add(li);	}	win.add(l1);	this._list = l1;	addTimer.addEventListener("tick", this.onAddTick, this);	removeTimer.addEventListener("tick", this.onRemoveTick, this);	addTimer.start();	removeTimer.start();}ListTest2.prototype.onAddTick = function () {	var li = new BiListItem("Item " + Math.random());	this._list.add(li);	application.getWindow().setCaption(this._list.getChildren().length);};ListTest2.prototype.onRemoveTick = function () {	for (var i = 0; i < 100; i++) {		if (this._list.hasChildren()) {			var tmp = this._list.getLastChild();			this._list.remove(tmp);			tmp.dispose();		}	}	application.getWindow().setCaption(this._list.getChildren().length);};ListTest2.main = function () { new ListTest2(); };		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -