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

JavascriptµÄ³£ÓÃÓï¾ä

1. document.write( " "); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document- >html- >(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window- >(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËصÄÃû³ÆºÍÖµ:document.getElementById( "±íµ¥ÖÐÔªËصÄID號 ").name(»òvalue)
6.Ò»¸öСдת´óдµÄJS: document.getElementById( "output ").value = document.getElementById( "input ").value.toUpperCase();
7.JSÖеÄÖµÀàÐÍ:String,Number,Boolean,Null,Object,Function
8.JSÖеÄ×Ö·ûÐÍת»»³ÉÊýÖµÐÍ:parseInt(),parseFloat()
9.JSÖеÄÊý×Öת»»³É×Ö·ûÐÍ:( " " ±äÁ¿)
10.JSÖеÄÈ¡×Ö·û´®³¤¶ÈÊÇ:(length)
11.JSÖеÄ×Ö·ûÓë×Ö·ûÏàÁ¬½ÓʹÓÃ號.
12.JSÖеıȽϲÙ×÷·ûÓÐ:==µÈÓÚ,!=²»µÈÓÚ, >, >=, <. <=
13.JSÖÐÉùÃ÷±äÁ¿Ê¹ÓÃ:varÀ´½øÐÐÉùÃ÷
14.JSÖеÄÅж¨Óï¾ä½á¹¹:if(condition){}else{}
15.JSÖеÄÑ­»·½á¹¹:for([initial expression];[condition];[upadte expression]) {inside loop}
16.Ñ­»·ÖÐÖ¹µÄÃüÁîÊÇ:break
17.JSÖеĺ¯Êý¶¨Òå:function functionName([parameter],...){statement[s]}
18.µ±ÎļþÖгöÏÖ¶à¸öform±íµ¥Ê±.¿ÉÒÔÓÃdocument.forms[0],document.forms[1]À´´úÌæ.
19.´°¿Ú:´ò¿ª´°¿Úwindow.open(), ¹Ø±ÕÒ»¸ö´°¿Ú:window.close(), ´°¿Ú±¾Éí:self
20.×´態À¸µÄÉèÖÃ:window.status= "×Ö·û ";
21.µ¯³öÌáʾÐÅÏ¢:window.alert( "×Ö·û ");
22.µ¯³ö確ÈÏ¿ò:window.confirm();
23.µ¯³öÊäÈëÌáʾ¿ò:window.prompt();
24.Ö¸¶¨µ±Ç°ÏÔʾÁ´½ÓµÄλÖÃ:window.location.href= "URL "
25.È¡³ö´°ÌåÖеÄËùÓÐ±íµ¥µÄÊýÁ¿:document.forms.length
26.¹Ø±ÕÎĵµµÄÊä³öÁ÷:document.close();
27.×Ö·û´®×·¼ÓÁ¬½Ó·û: =
28.´´½¨Ò»¸öÎĵµÔªËØ:document.createElement(),document.createTextNode()
29.µÃµ½ÔªËصķ½·¨:document.getElementById()
30.ÉèÖÃ±íµ¥ÖÐËùÓÐÎı¾Ð͵ijÉÔ±µÄֵΪ¿Õ:
var form = window.document.forms[0]
for (var i = 0; i <form.elements.length;i ){
if (form.elements.type == "text "){
form.elements.value = " ";
}
}
31.¸´Ñ¡°´Å¥ÔÚJSÖÐÅж¨ÊÇ·ñÑ¡ÖÐ:document.forms[0].checkThis.checked (checkedÊôÐÔ´ú±íΪ


Ïà¹ØÎĵµ£º

JAVASCRIPT ½Ì³Ì1 ¸¶Ê×ê¿

JavaScript ÊÇʲ÷᣿
  JavaScript ÊÇÒ»ÖÖеÄÃèÊöÓïÑÔ£¬´ËÒ»ÓïÑÔ¿ÉÒÔ±»óéÈë HTML µÄÎļþÖ®ÖС£
͸¹ý JavaScript ¿ÉÒÔ×öµ½»ØӦʹÓÃÕßµÄÐèÇóʼþ (È磺 form µÄÊäÈë) ¶ø²»ÓÃÈκεÄÍø·
À´»Ø´«Êä×ÊÁÏ£¬ËùÒÔµ±Ò»Î»Ê¹ÓÃÕßÊäÈëÒ»Ïî×ÊÁÏʱ£¬Ëü²»Óþ­¹ý´«¸øËÅ·þ¶Ë (server)
´¦Àí£¬ÔÙ´«»ØÀ´µÄ¹ý³Ì£¬¶øÖ±½Ó¿ÉÒÔ±»¿Í»§¶Ë (c ......

JAVASCRIPT ½Ì³Ì2 ¸¶Ê×ê¿

 
µÚ 2 ¼¯
--------------------------------------------------------------------------------
·¶ Àý 5£º
ÔÚ Õâ Ò» ²¿ ·Ö Ê× ÏÈ Òª Ϊ Äã Õ¹ ʾ µÄ JavaScript ÌØ ÐÔ ÊÇ ½« Äã µÄ »¬ Êó ÒÆ µ½ Õâ ¸ö ²» ͬ ÑÕ É«
µÄÁ¬ ½áÉÏ Ã棬 ´Ë ʱ ¿´ ¿´ ä¯ ÀÀ Æ÷ Ï µÄ ×´ ̬ ÁÐ ÓÐ ºÎ ½á ¹û¡£ È» áá Õâ Ñù µÄ ¹¦ ÄÜ ÎÒ ÃÇ ......

flashÓëjavascriptµÄ½»»¥


flashÓëjavascriptµÄ½»»¥¿ÉÄÜÌÖÂ۵ıȽ϶à,½ñÌìΪ´ó¼Ò½éÉÜÏÂÈçºÎʹÓÃflexÓëjavascript½øÐн»»¥
Ò»¡¢ÔÚJavaScriptÖе÷ÓÃFlex·½·¨
ÔÚFlexÖпÉÒÔÓÃExternalInterfaceÀ´µ÷ÓÃFlexµÄ·½·¨£¬Í¾¾¶ÊÇ
1.ͨ¹ýÔÚFlexÓ¦Óÿɵ÷Ó÷½·¨ÁбíÖÐÌí¼ÓÖ¸¶¨µÄ¹«Ó÷½·¨¡£ÔÚFlexÓ¦ÓÃÖÐͨ¹ýµ÷ÓÃaddCallback()¿ÉÒÔ°ÑÒ»¸ö·½·¨Ìí¼Óµ½´ËÁбíÖС£addC ......

JavaScript»ñÈ¡Ò³Ãæ¿í¶È¸ß¶È´óÈ«

ÍøÒ³¿É¼ûÇøÓò¿í£ºdocument.body.clientWidth
ÍøÒ³¿É¼ûÇøÓò¸ß£ºdocument.body.clientHeight
ÍøÒ³¿É¼ûÇøÓò¿í£ºdocument.body.offsetWidth(°üÀ¨±ßÏߵĿí)
ÍøÒ³¿É¼ûÇøÓò¸ß£ºdocument.body.offsetHeight(°üÀ¨±ßÏߵĿí)
ÍøÒ³ÕýÎÄÈ«ÎÄ¿í£ºdocument.body.scrollWidth
ÍøÒ³ÕýÎÄÈ«Îĸߣºdocument.body.scrollHeight
ÍøÒ³±»¾íÈ¥µ ......

ÕýÔò±í´ïʽ javascript ÑéÖ¤±íµ¥

дÏÂÒ»¸ö¹ØÓÚÓÃÕýÔò±í´ïʽÑéÖ¤±íµ¥µÄ´úÂ룬ÒÔºó¿ÉÒÔÓõ½¡£
function checkform(){
var null_regu = /^[ ]*$/;
var age_regu = /^[1-9][0-9]$/;
var tel_regu = /^[0-9]*(-){0,1}[0-9]{8,11}$/;
var email_regu=/^[\w]+[\w-\.]*@([\w]+\.)+[\w]+$/;
var qq_regu=/^(\d+){6,12}/;
if(new RegExp(null_regu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ