Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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[i].type ==


Ïà¹ØÎĵµ£º

JavaScript ¶ÔÏóÓëÊý×é²Î¿¼´óÈ«

±¾ÎÄÁоÙÁ˸÷ÖÖJavaScript¶ÔÏóÓëÊý×é,ͬʱ°üÀ¨¶ÔÉÏÊöÿһ¶ÔÏó»òÊý×éËùÍê³É¹¤×÷µÄ¼ò¶ÌÃèÊö,ÒÔ¼°ÓëÆäÏà¹ØµÄÊôÐÔ·½·¨,ÒÔ¼°Ê¼þ´¦Àí³ÌÐò¡£
¡¡¡¡B.1 anchor¶ÔÏó
¡¡¡¡Ê¹ÓÃ<A NAME=>±ê¼Ç´´½¨µÄHTMLÃèµãÄܱ»Ò»¸öÁ´½Ó×÷ΪĿ±êÈç¹ûêµã°üÀ¨HREF=ÌØÐÔ,ÔòËüÒ²ÊÇÒ»¸öÁ´½Ó¶ÔÏó¡£
¡¡¡¡anchor¶ÔÏóÊÇdocument¶ÔÏóµÄÒ»¸öÊôÐÔ,Ëü±¾Éíà ......

15 ¸ö JavaScript Web UI ¿â

¼¸ºõËùÓеĸ» Web Ó¦Óö¼»ùÓÚÒ»¸ö»ò¶à¸ö Web UI ¿â»ò¿ò¼Ü£¬ÕâЩ UI
¿âÓë¿ò¼Ü¼«´óµØ¼ò»¯ÁË¿ª·¢½ø³Ì£¬²¢´øÀ´Ò»Ö£¬¿É¿¿£¬ÒÔ¼°¸ß¶È½»»¥ÐÔµÄÓû§½çÃæ¡£±¾ÎĽéÉÜÁË 15 ¸ö·Ç³£Ç¿´óµÄ JavaScript Web UI
¿â£¬·Ç³£Êʺϸ÷ÖÖ¸÷ÖÖ¹æÄ£µÄ¸» Web Ó¦ÓõĿª·¢¡£
LivePipe
LivePipe
UI
»ùÓÚ Prototype Javascript ¿ò¼Ü
£¬°üº ......

Javascript ¿ª·¢¹¤¾ß


Build your web applications quickly and easily using the industry leading web application IDE -- Aptana Studio.
Introduction:
Aptana Studio is a complete web development environment that combines powerful authoring tools for HTML, CSS, and JavaScript, along with thousands of additional plugins ......

javascript ÑéÖ¤´úÂëÕûÀí

//the common event,If your brower is firefox,you should use this function instead of "window.event"
function getEvent() {
if(document.all)
return window.event; //get ie event
func=getEvent.caller;
while(func!=null) {
......

javascriptÑéÖ¤1

function $id(s) {
    return document.getElementById(s);
}
//ÅжÏСÊý
function IsFloat(s) {
    if (!/^[+\-]?\d+(.\d+)?$/.test(s))
        return false;
    else
        return ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ