Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

9.22 CSS¸´ºÏÊôÐÔºÍJavaScriptÔÚHtmlÒ³ÃæÖеÄÖ´ÐÐ˳Ðò

CSS¸´ºÏЧ¹û
CSSµÄЧ¹ûÊÇ¿ÉÒÔÖصþµÄ£¬ÀýÈçclass="a b"£¬ÄÇôÕâ¸ö½Úµã¾ÍͬʱӵÓÐÁËaºÍbµÄÊôÐÔ£¬²¢ÇÒ£¬b¿ÉÒÔ¸²¸ÇaµÄÊôÐÔ¡£
JavaScriptÔÚHtmlÖеÄÖ´ÐÐ˳Ðò
¾­¹ý¼òµ¥²âÊÔ£¬·¢ÏÖJavaScriptµÄÖ´ÐÐ˳ÐòÊÇ°´ÕÕjsµÄ¼ÓÔØ˳Ðò½øÐеģ¬¶øonloadº¯ÊýÊÇÔÚÕû¸öÒ³Ãæ¼ÓÔØÍê³Éºó²Å¿ªÊ¼Ö´ÐС£
ÎҵIJâÊÔÎļþ£º
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<mce:script language="javascript" type="text/javascript"><!--
alert("JS in the Header!");
function loadon(){
alert("onload!")
}

// --></mce:script>
</head>
<body onload="loadon()">
TODO write content
<mce:script language="javascript" type="text/javascript"><!--
alert("Before the </body>");


// --></mce:script>
</body>
</html>
 
Ö´Ðнá¹û£º
 
 
ÓÉ´Ë¿ÉÒÔ¿´³ö£º
headerÖеÄjs´úÂëÏȼÓÔØ£¬Òò´ËÒ²ÏÈÖ´ÐÐ
bodyÖеÄÆä´Î¼ÓÔØ
onloadÊÇÔÚbodyÍêÈ«¼ÓÔؽáÊøÖ®ºó²Å¼ÓÔØ£¬Òò´ËÊÇÔÚbodyÖеÄjsÖ´ÐÐÖ®ºó²ÅÖ´ÐÐ


Ïà¹ØÎĵµ£º

JavaScriptÖÐ µÄµ¹¼Æʱ

<html>
<head>
<title></title>
</head>
<body>
<form id=aa name=aa>
<input type=button value="ͬÒâ(10)" id=a1 disabled="disabled">
</form>
</body>
</html>
<script>
var num=10;
window.setTimeout("aa()",1000);
function ......

JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2

Ô­ÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2-showModalDialog  
ǰһƪÎÄÕÂJavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµÖн²µ½ÁËÈçºÎÀûÓÃwindow.open()·½·¨´ò¿ªÐ´°Ì壬²¢ÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµµÄ·½·¨¡£javascriptÖл¹ÓÐÒ»¸öº¯Êýwindow.showModalDialogÒ²¿ÉÒÔ´ò¿ªÒ»¸öд°Ì壬²»¹ýËû´ò¿ªµÄÊÇÒ»¸öģ̬´°¿Ú£¬ÄÇôÈçºÎÔÚ¸¸´°Ì ......

javascriptÕýÔò±í´ïʽ(ת)

Ò»£¬¸ÅÊö
1£¬ÕýÔò±í´ïʽ£¬¿ÉÒÔ˵ÊÇÈκÎÒ»ÖÖ±à³ÌÓïÑÔ¶¼ÌṩµÄ»úÖÆ£¬ËüÖ÷ÒªÊÇÌṩÁ˶Ô×Ö·û´®µÄ´¦ÀíÄÜÁ¦¡£
2£¬ÕýÔò±í´ïʽÔÚÒ³Ãæ´¦ÀíÖеÄʹÓó¡¾°£º
1£©±íµ¥ÑéÖ¤¡£Ñé֤ijЩÓò·ûºÏijÖÖ¹æÔò£¬ÀýÈçÓʼþÊäÈë¿ò±ØÐëÊäÈëµÄÊÇÓʼþ¡¢ÁªÏµµç»°ÊäÈë¿òÊäÈëµÄ±ØÐëÊÇÊý×ֵȵÈ
2£©´¦ÀíDOMÄ£ÐÍ¡£ÀýÈçͨ¹ý±í´ïʽ¶¨Î»DOMÖеÄÒ»¸ö¶ÔÏó»òһϵÁ ......

JavaScript ÈçºÎµ¯³öÒ»¸ö¶Ô»°¿ò´°¿Ú

//¶¨ÒåÒª´ò¿ªµÄ¶Ô»°¿òÒ³ÃæµÄµØÖ· Ò»°ãÓÃactionÌøתҪдÃ÷actionµÄµØÖ·£¬Èç¹ûÐèÒª²ÎÊý£¬ÔòÔÚºóÃæÆ´½Ó
var urlDialog = "grpBlackWhiteManageAction.do?act=choiceMessageModel&GrpBWhiteListLevel=0";
//¶¨ÒåÒªµ¯³öµÄ¶Ô»°¿òµÄģʽ£¬dialogWidth¿í£¬dialogHeight¸ß µÈµÈ
 var style = "dialogWidth=600px;dialogH ......

JavaScriptÄÚÖöÔÏóÊôÐÔ¼°·½·¨´óÈ«


1.Date
ÊôÐÔ(1):
constructor      Ëù½¨Á¢¶ÔÏóµÄº¯Êý²Î¿¼
prototype       Äܹ»Îª¶ÔÏó¼ÓÈëµÄÊôÐԺͷ½·¨
·½·¨(43):
getDay()        ·µ»ØÒ»ÖÜÖеĵڼ¸Ìì(0-6)
getYear()       ·µ»ØÄê·Ý.2000ÄêÒÔǰΪ2λ,2000 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ