把以下代码存为:calendar.js
-------------------代码开始------------------------
-------------------代码开始------------------------
复制内容到剪贴板 程序代码
document.write("<div id=meizzCalendarLayer style='position: absolute; z-index: 9999; width: 144; height: 193; display: none'>");
document.write("<iframe name=meizzCalendarIframe scrolling=no frameborder=0 width=100% height=100%></iframe></div>");
function writeIframe()
{
var strIframe = "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><style>"+
"*{font-size: 12px; font-family: 宋体}"+
".bg{ color: "+ WebCalendar.lightColor +"; cursor: default; background-color: "+ WebCalendar.darkColor +";}"+
document.write("<iframe name=meizzCalendarIframe scrolling=no frameborder=0 width=100% height=100%></iframe></div>");
function writeIframe()
{
var strIframe = "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><style>"+
"*{font-size: 12px; font-family: 宋体}"+
".bg{ color: "+ WebCalendar.lightColor +"; cursor: default; background-color: "+ WebCalendar.darkColor +";}"+
maorr_calendar.js
复制内容到剪贴板 程序代码
/*=======Calendar.js==============*/
var months = new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var days = new Array("日","一","二","三","四","五","六");
var today;
document.writeln("<div id='Calendar' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
var months = new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var days = new Array("日","一","二","三","四","五","六");
var today;
document.writeln("<div id='Calendar' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
08-06
19
The method setValue(String) in the type BaseInputTag is not applicable for the arguments (double)
作者:Java伴侣 日期:2008-06-19
could not read column value from result set :某某字段(birthday)
出现了这样的错误,反复对照,映射文件没问题,字段没问题。
问题在哪呢?测试了下,如果birthday是String 类型的,没问题。如果是Date类型的。出错,其实原因很简单了,把记录中birthday字段的默认值0000 00-00-00改为正常即可
出现了这样的错误,反复对照,映射文件没问题,字段没问题。
问题在哪呢?测试了下,如果birthday是String 类型的,没问题。如果是Date类型的。出错,其实原因很简单了,把记录中birthday字段的默认值0000 00-00-00改为正常即可
Tags: performing Date