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

JavaScript³£ÓöÔÏóÏê½â

SCRIPT ±ê¼Ç  
ÓÃÓÚ°üº¬JavaScript´úÂë.  
ÊôÐÔ  
LANGUAGE ¶¨Òå½Å±¾ÓïÑÔ  
SRC ¶¨ÒåÒ»¸öURLÓÃÒÔÖ¸¶¨ÒÔ.JS½áβµÄÎļþ  
window¶ÔÏó  
ÿ¸öHTMLÎĵµµÄ¶¥²ã¶ÔÏó.  
ÊôÐÔ  
frames[] ×ÓèåÊý×é.ÿ¸ö×ÓèåÊý×é°´Ô´ÎĵµÖж¨ÒåµÄ˳Ðò´æ·Å.  
feames.length ×Óèå¸öÊý.  
self µ±Ç°´°¿Ú.  
parent ¸¸´°¿Ú(µ±Ç°´°¿ÚÊÇÖÐÒ»¸ö×Ó´°¿Ú).  
top ¶¥²ã´°¿Ú(ÊÇËùÓпɼû´°¿ÚµÄ¸¸´°¿Ú).  
status ä¯ÀÀÆ÷״̬´°¿ÚÉϵÄÏûÏ¢.  
defaultStatus µ±statusÎÞЧʱ,³öÏÖÔÚä¯ÀÀÆ÷״̬´°¿ÚÉϵÄȱʡÏûÏ¢.  
name ÄÚ²¿Ãû,ΪÓÉwindow.open()·½·¨´ò¿ªµÄ´°¿Ú¶¨ÒåµÄÃû×Ö.  
·½·¨  
alert("message") ÏÔʾº¬Óиø¶¨ÏûÏ¢µÄ"JavaScript Alert"¶Ô»°¿ò.  
confirm("message") ÏÔʾº¬Óиø¶¨ÏûÏ¢µÄ"Confirm"¶Ô»°¿ò(ÓÐÒ»¸öOK°´Å¥ºÍÒ»¸öCancel°´Å¥).Èç¹ûÓû§µ¥»÷OK·µ»Øtrue,·ñÔò·µ»Øfalse.  
prompt("message") ÏÔʾһ¸ö"prompt"¶Ô»°¿ò,ÒªÇóÓû§¸ù¾ÝÏÔʾÏûÏ¢¸øÓèÏàÓ¦ÊäÈë.  
open("URL","name") ´ò¿ªÒ»¸öд°¿Ú,¸øÓèÒ»¸öÖ¸¶¨µÄÃû×Ö.  
close() ¹Ø±Õµ±Ç°´°¿Ú.  
frame¶ÔÏó  
ËüÊÇÕû¸öä¯ÀÀÆ÷´°¿ÚµÄ×Ó´°¿Ú,³ýÁËstatus,defaultStatus,nameÊôÐÔÍâ,ËüÓµÓÐwindow¶ÔÏóµÄÈ«²¿ÊôÐÔ.  
location¶ÔÏó  
º¬Óе±Ç°URLµÄÐÅÏ¢.  
ÊôÐÔ  
href Õû¸öURL×Ö·û´®.  
protocol º¬ÓÐURLµÚÒ»²¿·ÖµÄ×Ö·û´®,Èçhttp:  
host °üº¬ÓÐURLÖÐÖ÷»úÃû:¶Ë¿ÚºÅ²¿·ÖµÄ×Ö·û´®.Èç//www.cenpok.net/server/  
hostname °üº¬URLÖÐÖ÷»úÃûµÄ×Ö·û´®.Èçhttp://www.cenpok.net  
port °üº¬URLÖпÉÄÜ´æÔڵĶ˿ںÅ×Ö·û´®.  
pathname URLÖÐ"/"ÒÔºóµÄ²¿·Ö.Èç~list/index.htm  
hash "#"ºÅ(CGI²ÎÊý)Ö®ºóµÄ×Ö·û´®.  
search "?"ºÅ(CGI²ÎÊý)Ö®ºóµÄ×Ö·û´®.  
document¶ÔÏó  
º¬Óе±Ç°ÎĵµÐÅÏ¢µÄ¶ÔÏó.  
ÊôÐÔ  
title µ±Ç°Îĵµ±êÌâ,Èç¹û䶨Òå,Ôò°üº¬"Untitled".  
location ÎĵµµÄÈ«URL.  
lastModified º¬ÓÐÎĵµ×îºóÐÞ¸ÄÈÕÆÚ.  
r


Ïà¹ØÎĵµ£º

JavaScriptÖÐDOMÊ÷µÄNode½Ó¿ÚµÄһЩ¼òµ¥Ó¦ÓÃ

1. ÓÃÀàÃû²éÕÒÔªËØ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN
" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml
" >
<head>
<title>Untitled Page</title>
......

javascript Ô­ÐͶÔÏóÓëprototypeµÄ¹Øϵ

    JavascriptÖеļ̳лúÖÆÊÇËùνµÄÔ­ÐͶÔÏó¼Ì³Ð£¬Í¨¹ýÊôÐÔ·ÃÎÊ»úÖƵÄÌØÊâÐÔÀ´ÊµÏּ̳еġ£Ö®Ç°ÎÒÒ»Ö±ÒÔΪËùÓжÔÏóµÄÔ­ÐͶÔÏó¾ÍÊÇprototypeËùÖ¸µÄÄǸö¶ÔÏ󡣺óÀ´ÔÚ¿´javascriptÉè¼ÆģʽµÄʱºò·¢ÏÖ×÷Õß×¢ÖÐÓÐÒ»¾ä»°ÓëÎÒ֮ǰµÄÀí½â²»Í¬£¬Ëû˵“ÿ¸ö¶ÔÏó¶¼ÓÐÒ»¸öÔ­ÐͶÔÏ󣬵«Õâ²¢²»Òâζ×Åÿ¸ö¶ÔÏó¶¼ÓÐÒ»¸ ......

javascript check all and uncheck

<script language='javascript'>
function toggleAll(cb)
{
    var val = cb.checked;
    var frm = document.forms[0];
    var len = frm.elements.length;
    var i=0;
    for( i=0 ; i<len ; i++)
  &nb ......

JavaScript ¶¯Ì¬Êý×é ʵÀý


<html>
<body>
<script type="text/javascript">
//·½·¨Ò»
var num_arr= [];
for (var i = 0 ; i < 10 ;  i ++)
{
  num_arr[i] = i; 
}
document.write(num_arr+'</br>');
//·½·¨¶þ
var obj_arr=new Array();
obj_arr[6]='ss';
document.write(obj_arr.len ......

[·­Òë]High Performance JavaScript(005)

µÚ¶þÕ  Data Access  Êý¾Ý·ÃÎÊ
    One of the classic computer science problems is determining where data should be stored for optimal reading and writing. Where data is stored is related to how quickly it can be retrieved during code execution. This problem in JavaScri ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ