2012年7月7日
摘要: ShowModalDialog函数的功能:打开一个子窗口,并且可与父窗口相互传递数据,它与window.open的最大区别就在于由ShowModalDialog打开子窗口后,父窗口将不能操作。使用方法:vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])参数说明:sURL必选参数,类型:字符串。用来指定对话框要显示的文档的URL。vArguments可选参数,类型:变体。用来向对话框传递参数。传递的参数类型不限,包括数组等。对话框通过window.dialogArguments来取得传递进来的参数。sF 阅读全文
posted @ 2012-07-07 13:40 cw_volcano 阅读(1043) 评论(0) 推荐(0)
摘要: DateBox 日期显示默认的格式为“dd/mm/yyyy”,如果想自定义成我们的格式需要实现两个函数,formatter和parser。formatter函数使得选择日期后将其格式化为我们需要的格式,parser函数在选择好日期后告诉控件如何去解析我们自定义的格式。定义如下:formatter:A function to format the date, the function take a 'date' parameter and return a string value.parser:A function to parse a date string, the fun 阅读全文
posted @ 2012-07-07 13:29 cw_volcano 阅读(296) 评论(0) 推荐(0)