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

JavaScriptµÄwithÓï¾ä


withÓï¾ä
    ÓÃÓÚÉèÖôúÂëÌØ¶¨¶ÔÏóµÄ×÷ÓÃÓò¡£
    Àý£º
        var sMessage = "hello world";
        with(sMessage)
        {
            alert(toUpperCase());       //Êä³ö "HELLO WORLD"
        }
    withÓï¾äÊÇÔËÐлºÂýµÄ´úÂë¶Î£¬ÓÈÆäÊÇÔÚÒÑÉèÖÃÁËÊôÐÔֵʱ¡£´ó¶àÊýÇé¿öÏ£¬¾¡Á¿±ÜÃâʹÓÃËü¡£


Ïà¹ØÎĵµ£º

JavaScriptÖÐTrimº¯Êý


JavaScriptÖÐûÓÐTrimº¯Êý£¬VBScriptÓïÑÔÖвÅÓÐÕâ¸öº¯Êý£¬¾ÍÊÇÈ¥µô×Ö·û´®Í·ºÍβµÄ¿Õ¸ñ¡£¿ÉÒÔÔÚJavaScriptÖÐÕâôдһ¸ö£º
<script language="JavaScript">
//´Ë´¦ÎªstringÀàÌí¼ÓÈý¸ö³ÉÔ±
String.prototype.Trim = function(){ return Trim(this);}
String.prototype.LTrim = function(){return LTrim( ......

javaScript¼òµ¥µÄ±í¸ñ±ß¿òÉÁ˸Ч¹û¡£

Ã²ËÆCSDNÀïµÄ¶¼ÊÇרҵÈËÊ¿£¬¸ßÊÖ¿ÉÒÔÂÓ¹ýÁË£¬ºÇºÇ¡£
Ò»ÏÂÊÇÔ´Â룺
<!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 ......

ASP.NETÓëJavaScript½»»¥

1.asp.netºô½Ðjs
view
plain
copy
to clipboard
print
?
Response.Write("<mce:script language=javascript><!--  
");  
Response.Write("alert('»¶Ó­Äú ');"
 );  
Response.Write("location.href='login.aspx';"
)& ......

javaScript(&jQuery)¹¤¾ß¼°ÏàÓ¦ÍøÕ¾×ÊÁÏ

1.Dean Edwards±àдµÄPacker£¨http://dean.edwards.name/packer/£©£¬ÓÃÓÚѹËõJavaScript
2.»ñÈ¡JQuery£ºhttp:/jquery.com 
                     http://docs.jquery.com/Downloading_jQuery   ÏÂÔØ¸÷¸ö°æ±¾¼°ÏàÓ¦°ïÖúÎ ......

JavaScriptµÄfor inÓï¾ä


ÓÃÓÚö¾Ù¶ÔÏóµÄÊôÐÔ
    Àý£º
        for(sProp in window)
        {
            alert(sProp);   //ÏÔʾBOM window¶ÔÏóµÄËùÓÐÊôÐÔ¡£
        }& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ