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

📄 calendartest.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<Application>	<Window caption="Calendar Test" width="400" height="250">		<Command id="year-buttons" checked="true"			onexecute="this.getComponentById('c').setShowYearButtons( event.getCurrentTarget().getChecked() )"/>		<Command id="month-buttons" checked="true"			onexecute="this.getComponentById('c').setShowMonthButtons( event.getCurrentTarget().getChecked() )"/>		<Command id="caption" checked="true"			onexecute="var c = this.getComponentById('c'); c.setShowCaption( event.getCurrentTarget().getChecked() ); c.pack();"/>		<Calendar id="c" left="10" top="10"/>		<CheckBox command="#year-buttons" text="Show year buttons" left="210" top="10" />		<CheckBox command="#month-buttons" text="Show month buttons" left="210" top="30"/>		<CheckBox command="#caption" text="Show caption" left="210" top="50"/>		<ComboBox id="locale-combo" left="210" top="70">			<ComboBoxItem text="de"/>			<ComboBoxItem text="en"/>			<ComboBoxItem text="es"/>			<ComboBoxItem text="fr"/>			<ComboBoxItem text="he"/>			<ComboBoxItem text="ja"/>			<ComboBoxItem text="ko"/>			<ComboBoxItem text="pt"/>			<ComboBoxItem text="ru"/>			<ComboBoxItem text="sv"/>			<ComboBoxItem text="tr"/>			<ComboBoxItem text="zh-CN"/>			<ComboBoxItem text="zh-TW"/>		</ComboBox>		<Label id="out" wrap="true" left="210" top="100" right="10"/>	</Window>	<Resources>		<Script><![CDATA[function CalendarTest(){	var c = application.getComponentById( "c" );	//var d = new Date;	//d.setUTCFullYear( 1700 );	//c.setSelectedDate( d );	var lc = application.getComponentById( "locale-combo" );	lc.addEventListener( "change", function ( e )	{		c.setDateFormatSymbols( new BiDateFormatSymbols( lc.getSelectedItem().getText() ) );		this.update();	}, this );	c.addEventListener( "change", this.update, this );	this.update();}CalendarTest.main = function (){	new CalendarTest;};CalendarTest.prototype.update = function (){	var c = application.getComponentById( "c" );	var out = application.getComponentById( "out" );	var lc = application.getComponentById( "locale-combo" );	var d = c.getSelectedDate();	var selItem = lc.getSelectedItem();	if ( d )	{		var df = BiDateFormat.getDateInstance(					BiDateFormat.LONG,					selItem ? selItem.getText() : null );		out.setText( df.getLocalizedPattern() + "\n"+ df.format( d ) );	}};		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

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