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

JavaScriptÄ£¿éËæÒâÍ϶¯

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScriptÄ£¿éËæÒâÍ϶¯</title>
 <style type="text/css">
 html{
  width:100%;
  overflow-x:hidden;
 }
 body{
  font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
  width:100%;
  margin:0px;
  padding:0px;
  text-align:center;
  background-color:#E2EBED; 
  font-size:0.7em; 
  overflow-x:hidden;
 }
  
 #mainContainer{
  width:600px;
  margin:0 auto;
  text-align:left;
  background-color:#FFF;
 }
 h4{
  margin:0px;
 }
 p{
  margin-top:5px;
 }
 #dragableElementsParentBox{
  padding:10px;
 }
 
 .smallArticle,.bigArticle{
  float:left;
  border:1px solid #000;
  background-color:#DDD;
  padding:2px;
  margin-right:10px;
  margin-bottom:5px;
 }
 .smallArticle img,.bigArticle img{
  float:left;
  padding:5px;
 }
 .smallArticle .rightImage,.bigArticle .rightImage{
  float:right;
 }
 .smallArticle{
  width:274px;  
 }
 .bigArticle{
  width:564px;
 }
 .clear{
  clear:both;
 }
 
 #rectangle{
  float:left;
  border:1px dotted #F00;
  background-color:#FFF;
 }
 #insertionMarker{
  width:6px;
  position:absolute;
  display:none;
 }
 #insertionMarker img{
  float:left


Ïà¹ØÎĵµ£º

JavascriptÔÚIEºÍFireFoxÖеIJ»Í¬±íÏÖ

1.document.formName.item("itemName") ÎÊÌâ
˵Ã÷:IEÏÂ,¿ÉÒÔʹÓÃdocument.formName.item("itemName")»ò
document.formName.elements["elementName"];FirefoxÏÂ,Ö»ÄÜʹÓÃ
document.formName.elements["elementName"].
½â¾ö·½·¨:ͳһʹÓÃdocument.formName.elements["elem ......

JavascriptÖеÄÈÕÆÚ¸ñʽ»¯

×öJava¿ª·¢µÄÈ˶¼ÖªµÀ,ÔÚJavaÖÐÓÐXXXFormat(±ÈÈçSimpleDateFormat)Àà¿ÉÒÔ°ïÖúÎÒÃǵõ½ÏëÒªµÄÊý¾Ý¸ñʽ.ÔÚJavaScriptÖÐûÓÐÕâÑùµÄ¶«Î÷,ËùÒÔÎÒÃÇÐèÒªÓÃÁíÒ»ÖÖ·½·¨µÃµ½ÎÒÃÇÏëÒªµÄ¶«Î÷.´úÂëÈçÏÂ:
<html>
<head>
<title>Test</title>
<mce:script type="text/javascript" language="javascri ......

¿ªÆôJavaScriptµ÷ÊÔ

ÏÂÃæµÄ²Ù×÷²½ÖèÃèÊöÁËÔõÑùÀûÓÃvs.netÖеĵ÷ÊÔÆ÷À´µ÷ÊÔjavascript£º
1,Ê×ÏÈ£¬ÒªÈÃÄãµÄieÔÊÐíµ÷ÊԽű¾£¬¾ßÌå²½ÖèÈçÏÂ:
   ´ò¿ªie->¹¤¾ß²Ëµ¥->interÑ¡Ïî->¸ß¼¶Ñ¡Ï->È¥µô“½ûÖ¹½Å±¾µ÷ÊÔ"Ñ¡Ïî
2,´ò¿ªvs.net,´´½¨Ò»¸öеÄasp.netÏîÄ¿(»ò´ò¿ªÒ»¸ö)
3,ÔËÐÐÄãÒªµ÷ÊÔµÄÒ³Ãæ
4,µ±ÄãµÄÒ³Ãæ³ÊÏÖÔÚieÀ ......

JavaScript£¨JS£©×Ô´ø×Ö·û´®´¦Àíº¯Êý


concat
½«Á½¸ö»ò¶à¸ö×Ö·ûµÄÎı¾×éºÏÆðÀ´£¬·µ»ØÒ»¸öеÄ×Ö·û´®¡£
var a = "hello";
var b = ",world";
var c = a.concat(b);
alert(c);
//c = "hello,world"
indexOf
·µ»Ø×Ö·û´®ÖÐÒ»¸ö×Ó´®µÚÒ»´¦³öÏÖµÄË÷Òý£¨´Ó×óµ½ÓÒËÑË÷£©¡£Èç¹ûûÓÐÆ¥ÅäÏ·µ»Ø -1 ¡£
var index1 = a.indexOf(& ......

javascript framework£¬ JS³£Óú¯Êý£¨·½·¨£©£¬jQuery

//Register NameSpace for window.MSN
if(!window.MSN)
{
    window.MSN = {};
}
if(!window.MSN.SET)
{
    window.MSN.SET = {};
}
if(!window.MSN.SET.Utilities)
{
    window.MSN.Utilities = {};
}
//Check you borwse type
//IE7 &IE8 & FF et ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ