This method returns the day of the week of dateVar. Sunday is 0, and Saturday is 6. To get the name of the corresponding weekday, create an array holding the names of the days of the week and compare the return value to the array index, as shown in the following example....
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getDay)]publicstaticdoublegetDay(objectthisob); Parameters thisob Object The object that this method is acting upon. Returns
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getDay)]publicstaticdoublegetDay(objectthisob); Parameters thisob Object The object that this method is acting upon. Returns
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getDay)]publicstaticdoublegetDay(objectthisob); Parameters thisob Object The object that this method is acting upon. Returns
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getDay)] public static double getDay (object thisob); Parameters thisob Object The object that this method is acting upon. Returns Double The day-of-the-week value of thisob...
...,可是在其它浏览器下就报错了,报了这样一个错: Uncaught TypeError: Illegal invocation 未捕获的类型错误:非法调用 当时没太注意,当时没仔细去弄清楚是怎么回事...后面是可以避免报此错误的一个example,我一看没太注意,之后他又发了一个ref Calling a Method with a Function Pointer without ".call" or....
The getDay() method returns the day of the week for the specified date according to local time, where 0 represents Sunday. For the day of the month, see Date.prototype.getDate().SyntaxdateObj.getDay()Return valueAn integer number, between 0 and 6, corresponding to the day of the week...
This method returns the day of the week of dateVar. Sunday is 0, and Saturday is 6. To get the name of the corresponding weekday, create an array holding the names of the days of the week and compare the return value to the array index, as shown in the following example....
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getDay)]publicstaticdoublegetDay(objectthisob); Parameters thisob Object The object that this method is acting upon. Returns
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getDay)] public static double getDay (object thisob); Parameters thisob Object The object that this method is acting upon. Returns Double The day-of-the-week value of thisob...