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

javascript²Ù×÷¸´Ñ¡¿òº¯Êý

javascript²Ù×÷¸´Ñ¡¿òº¯Êý
function CheckAll(form) {//È«Ñ¡
for (var i=0;i    var e = form.elements[i];
    if (e.name != 'chkall')
       e.checked = form.chkall.checked;
   }
}
function checkSelect()//ÅжÏÊÇ·ñÓÐÑ¡Ïî
{
   var pass = false;
   var input_elements = document.getElementsByName("Pdel[]");
   for ( var i= 0; i< input_elements.length ; i++ )
   {
    var is_checked =   input_elements[i].checked;
    var input_name =   input_elements[i].getAttribute("name");
    var input_type = input_elements[i].getAttribute("type");
    if ( input_type == "checkbox" && input_name != "chkall" && true == is_checked )
     pass = true;
   }
   if ( false == pass )
   {
    alert("ÇëÑ¡ÔñҪɾ³ýµÄÑ¡Ïî!");
    return false;
   }
   else
    return true;
}
function selrev() {//·´Ñ¡
with(document.myform) {
   for(i=0;i    thiselm = elements[i];
    if(thiselm.name.match(/dfile\[]/))
  thiselm.checked = !thiselm.checked;
   }
}
}


Ïà¹ØÎĵµ£º

javascript checkBoxµÄʹÓÃ

¢Ùfunction doDelete(){
    var deleteArray = new Array();
    var cnt = 0;
    for (i = 0; i < document.forms[0].elements.length; i++ ) {
        // ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤¬ON¤Î時¤Ï¤½¤Î値¤ò設¶¨¤¹¤ë¡£
......

javascriptʼþ from PPK yahooÑݽ²

תÔØ×Ô£ºhttp://www.zipeng.info/archives/ppk-on-js-events.html
½ñÌìÎÒ»á˵һЩ¹ØÓÚJavaScriptʼþµÄÊÂÇ飬ÎÒºÜÏ£Íû×Ô¼ºÄÜÆô·¢´ó¼ÒһЩʲô£¬²»¹ý´ó»ï¶¼ÊǸßÊÖ£¬²»¹ÜÔõô£¬ÎÒ»¹ÊÇҪ˵˵
JavaScriptʼþ¡£
´óÔ¼Ò»ÄêÇ°ÎÒ´òËã¶ÔJavaScriptµÄʼþ×öһЩÉîÈëµÄÑо¿£¬²¢ÇÒÎÒ×öÁËÒ»ÕżæÈÝÐÔµÄ±í£¬´ó¼Ò¿ÉÒÔͨ¹ýÏÂÃæÕâÀïÀ´
·ÃÎ ......

Javascript ×Ö·û´® substring Óë substr Çø±ð

stringObject.substring(start,end);
º¯Êý·½·¨½«·µ»ØÒ»¸ö°üº¬´Ó start µ½×îºó£¨²»°üº¬ end £©µÄ×Ó×Ö·û´®µÄ×Ö·û´®.
start     ±ØÐè¡£Ò»¸ö·Ç¸ºµÄÕûÊý£¬¹æ¶¨ÒªÌáÈ¡µÄ×Ó´®µÄµÚÒ»¸ö×Ö·ûÔÚ stringObject ÖеÄλÖÃ.
stop     ¿ÉÑ¡¡£Ò»¸ö·Ç¸ºµÄÕûÊý£¬±ÈÒªÌáÈ¡µÄ×Ó´®µÄ×îºóÒ»¸ö×Ö·ûÔÚ stringObject ......

JavascriptÖ®ä¯ÀÀÆ÷¶ÔÏó


ä¯ÀÀÆ÷¶ÔÏó
 
 
ä¯ÀÀÆ÷¶ÔÏó¾ÍÊÇÍøÒ³ºÍä¯ÀÀÆ÷±¾Éí¸÷ÖÖʵÌåÔªËØÔÚJavaScript³ÌÐòÖеÄÌåÏÖ¡£ÕâÑùµÄä¯ÀÀÆ÷¶ÔÏóÖ÷Òª°üÀ¨ÒÔϼ¸¸ö
¡ñ  Navigator£º¹ÜÀíÕßµ±Ç°Ê¹ÓÃä¯ÀÀÆ÷µÄ°æ±¾ºÅ¡¢ÔËÐеÄƽ̨ÒÔ¼°ä¯ÀÀÆ÷ʹÓõÄÓïÑÔµÈÐÅÏ¢¡£
¡ñ  Windows¶ÔÏ󣺴¦ÓÚÕû¸ö´ÓÊô±íµÄ×¼¶Î»Öá£Ã¿Ò»¸öÕâÑùµÄ¶ÔÏó´ú±íÒ»¸öä¯ÀÀ ......

javascript µÄperlÀàÐ͵ÄÕýÔò±í´ïʽ

£¨1£©var recat = new RegExp("cat");    //¼òµ¥¶¨Òå¡£
        var recat = new RegExp("cat","gi");//g->global,i->case insensitive.
        var recat = /cat/gi;                       ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ