javaScript
Rubicon
javascript ÊÇÒ»ÖÖÇø·Ö´óСдµÄ³ÌÐòÓïÑÔ.
¶¨ÒåÊý×é:
var strweek= new Array(7);
Îʺűí´ïʽ
var i= (condition)?A:B;
Ï൱ÓÚif-else Óï¾ä;condition ³ÉÁ¢ Ö´ÐÐA £¬²»³ÉÁ¢Ö´ÐÐB;
switch Óï¾ä
var i=3;
var result="";
swithck(i);
{
case 1;
result="First";
case 2;
result="Second";
case 3;
result="Three";
break;
}
DateÀà
getDate() getYear() getMont()
getMinutes() getHours() getSeconds()
setTimeout("fution()",1000);
Ïà¹ØÎĵµ£º
¡¾×ª¡¿http://www.cnblogs.com/chenxizhang/archive/2009/07/12/1522058.html
ÔÚʹÓÃVisual Studio×ö¿ª·¢µÄʱºò£¬ÖÇÄܸÐÖªÊǷdz£·½±ãµÄ¡£´ÓVS2008¿ªÊ¼£¬ÌṩÁ˶ÔjavascriptµÄÖÇÄܸÐÖªÖ§³Ö¡£ÀýÈç
ÉÏÊö´úÂëÖУ¬ÎÒÃÇÏÈÓÃdocument¶ÔÏóµÄgetElementByIdµÄ·½Ê½È¡µÃÁËÎĵµÖеÄÒ»¸öIdΪform1µÄÔªËØ£¬Êµ¼ÊÉϾÍÊÇĬÈϵÄÄǸö´°ÌåÔ ......
//»ñÈ¡ä¯ÀÀÆ÷µÄ¿íºÍ¸ß£¨¶àÖÖä¯ÀÀÆ÷£©
function getNavWidthandHeightInfo()
{
var s = "";
s += " ÍøÒ³¿É¼ûÇøÓò¿í£º"+ document.body.clientWidth;
s += " ÍøÒ³¿É¼ûÇøÓò¸ß£º"+  ......
˵Ã÷£º
appendChild()
ÎÒ²âÊԵĽá¹û£º
1 appendChild() ±í¸ñÖÐËùÓÐÐÐÑ»·ÉÏÒÆÒ»ÐÐºó£¬ ÓÃеģ¨ÐУ©Ìæ»»ÁË ±í¸ñµÄÄ©ÐÐ £»Ï൱ÓÚÌæ»»Á˱í¸ñµÄµÚÒ»ÐУ¬²¢Ñ»·ÉÏÒÆÒ»ÐÐ
2 ²»¸Ä±ä ±í¸ñµÄ×Ü ÐÐÊý
insertRow()
1 insertRow() ÔÚ±í¸ñÖвåÈëÒ»ÐУ¬±í¸ñ×ÜÐÐÊéÔöÒ»
2 insertRow(index) index=0 , ÔÚ±íÍ·Ôö¼Ó£¬ index=-1, ÔÚ± ......
ʼþÔ´¶ÔÏó
event.srcElement.tagName
event.srcElement.type
²¶»ñÊÍ·Å
event.srcElement.setCapture();
event.srcElement.releaseCapture();
ʼþ°´¼ü
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
ʼþ·µ»ØÖµ
event.returnValue
Êó±êλÖÃ
eve ......
JavaScript ÊǸù¾Ý "ECMAScript"±ê×¼Öƶ¨µÄÍøÒ³½Å±¾ÓïÑÔ¡£Õâ¸ö±ê×¼ÓÉ ECMA ×éÖ¯·¢Õ¹ºÍά»¤¡£ECMA-262
ÊÇÕýʽµÄ JavaScript ±ê×¼¡£Õâ¸ö±ê×¼»ùÓÚ JavaScript (Netscape) ºÍ JScript
(Microsoft)¡£Netscape (Navigator 2.0) µÄ Brendan Eich ·¢Ã÷ÁËÕâÃÅÓïÑÔ£¬´Ó 1996
Ä꿪ʼ£¬ÒѾ³öÏÖÔÚËùÓÐµÄ Netscape ºÍ Micro ......