JavaScriptÖеÄDate¶ÔÏó
1.ÉùÃ÷Ò»¸öDateʱ¼ä¶ÔÏóµÄ·½Ê½ÓÐÒÔÏÂÈýÖÖ
Date()£º±íʾ¹¹ÔìÒ»¸öµ±Ç°ÏµÍ³Ê±¼ä¶ÔÏó
Date(int year,int month,int day)£º¹¹ÔìµÄʱ¼ä¶ÔÏóËùÖ¸ÏòµÄʱ¼äΪ Ä꣺1900+year;Ô£ºmonth+1;ÈÕ£ºday;ʱ,·Ö,Ã룺00
Date(int millsecond)£º¹¹ÔìµÄʱ¼ä¶ÔÏóËùÖ¸ÏòµÄʱ¼äΪ1970Äê1ÔÂ1ÈÕ08ʱ00·Ö00Ãë+millsecondºÁÃëËùµÃµÄʱ¼ä
2.Date¶ÔÏó³£Óõķ½·¨
getYear()£º»ñÈ¡"µ±Ç°¶ÔÏóËùÖ¸ÏòµÄÄê·Ý-1900"ËùµÃµÄÄê·Ý
getMonth()£º»ñÈ¡"µ±Ç°¶ÔÏóËùÖ¸ÏòµÄÔ·Ý-1"ËùµÃµÄÔ·Ý
getDate()£º»ñÈ¡µ±Ç°¶ÔÏóµÄÈÕÆÚ
getDay()£º»ñÈ¡µ±Ç°¶ÔÏóµÄÈÕÆÚ
getHours()£º»ñÈ¡µ±Ç°¶ÔÏóµÄСʱ
getMinutes()£º»ñÈ¡µ±Ç°¶ÔÏóµÄ·ÖÖÓ
getSeconds()£º»ñÈ¡µ±Ç°¶ÔÏóµÄÃëÖÓ
getTime()£º»ñÈ¡µ±Ç°Ê±¼ä¶ÔÏó¾àÀë1970Äê1ÔÂ1ÈյĺÁÃëÊý
setYear(int year)£º½«Äê·ÝÉèÖÃΪ1900+year
setMonth(int month)£º½«Ô·ÝÉèÖÃΪmonth+1
setDate(int date)£ºÉèÖÃÈÕÆÚ
setHours(int hour)£ºÉèÖÃСʱ
setMinutes(int minute)£ºÉèÖ÷ÖÖÓ
setSeconds(int second)£ºÉèÖÃÃëÖÓ
Ïà¹ØÎĵµ£º
ÀûÓýű¾·â×°£¬·½±ãʵÏÖÍøÕ¾Ðü¸¡¹ã¸æ
ÏÂÃæÊÇJS½Å±¾(floatdiv.js)
/*======================================================================
¸¡¶¯¿éÖ§³Ö½Å±¾
DESIGN BY : Åí¹ú»Ô
DATE: 2004-02-26
SITE: http://kacarton.yeah.net/
BLOG: http://blog.csdn.net/nhconch
EMAIL: kacarton@sohu.com
ÎÄÕÂÎ ......
ÐèÒªÒýÈëjquery-1.3.2.js
»ñÈ¡¿í¶È
function getCurrentWidth(){
var currentWidth = 0;
// handle IE 6
if ($.browser.msie && $.browser.version < 7) {
var scrollWidth = Math.max(
document.documentElement.scrollWidth,
docu ......
//̽²âͼƬÊÇ·ñ´æÔÚ
function IsExist(url)
{
x = new ActiveXObject("Microsoft.XMLHTTP")
x.open("HEAD",url,false)
x.send()
return x.status==200
}
ÅжÏijһ¸öÍøÂçµØÖ·µÄͼƬÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬¾Í»á·µ»Øtrue ,²»´æÔھͷµ»Ø false~~~~ ......
ÔÎĵØÖ·:http://www.cnblogs.com/harrychen66/archive/2008/10/10/488457.html
javascriptʵÏÖ½Ó¿Ú
ÏàÐźܶàÈËÖ®ËùÒÔ¶ÔjavascriptûÓкøÐ,¿ÉÄÜÊÇÒòΪËüÌ«ËæÒâÁË,ÀýÈ綨Òå±äÁ¿¿ÉÒÔËæÒâµÄ¼Óvar,»òÕß²»¼Ó,ÿÌõÓï¾äºóÃæµÄ¿ÉÒÔËæÒâµÄ¼ÓÉÏ";",»òÕß²»¼Ó,¿ÉÄÜ×îÄÑÈÌÊܵÄÊÇ,varÁËÒ»¸ö±äÁ¿ºó,Ëü¿ÉÒÔÊÇÈκÎÀàÐÍ,û ......
ת×Ô£ºhttp://www.cnblogs.com/greki/archive/2009/06/02/1494863.html
ÆäËü·½Ê½£º¹¤³§·½Ê½£¬¹¹Ô캯Êý·½Ê½£¬ÔÐÍ·½Ê½¶¼¸÷Óи÷µÄ´óȱÏÝ£¬ÕâÀï¾Í²»Ò»Ò»½éÉÜÁË£¬ÏëÁ˽âµÄ¿ÉÒÔÈ¥¿´Ò»ÏÂÕâ±¾Öø×÷µÄµÚ3Õ½ڡ£
1. »ìºÏ¹¹Ô캯Êý/ÔÐÍ·½Ê½
function Car(sColor, iDoors, iMpg) {
this .color = sColor;
this ......