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

ÓÃJavaScript·â×°ÏÂFileSystemObject£¬×öÏÂÎļþ²Ù×÷£¡

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor
 */
var File = {
    name:'',
    path:'',
    ext:'',
    cfiles:[],
    attributes:{
        driver:'',
        parentFolder:'',
        shortName:'',
        shortPath:'',
        type:''
    },
    getInstance:function(){
      var reObj = {};
      this.path = arguments[0];
      this.name = arguments[1];
      Object.extend(reObj, this);
      //³õʼ»¯FSO¶ÔÏó
      try{
          this.fso = new ActiveXObject("Scripting.FileSystemObject");
          if(!(fso.FolderExists(this.path))){
              fso.CreateFolder(this.path);
          };
      }catch(e){
          alert(e.message);
          return;
      };
      //Èç¹ûÊÇÎļþ¼Ð£¬»ñµÃ¸ÃÎļþ¼ÐÏÂËùÓÐÎļþ
      if("" == this.name){
          this.attributes.type = 'FOLDER';
          var folder = fso.GetFolder(this.path);
          this.cfiles = new Enumerator(folder.Files);
      }else{


Ïà¹ØÎĵµ£º

JavaScript isNaN() º¯Êý


·µ»Ø JavaScript È«¾Ö¶ÔÏó²Î¿¼ÊÖ²á
¶¨ÒåºÍÓ÷¨
isNaN() º¯ÊýÓÃÓÚ¼ì²éÆä²ÎÊýÊÇ·ñÊÇ·ÇÊý×ÖÖµ¡£
Óï·¨
isNaN(x)
²ÎÊýÃèÊö
x
±ØÐè¡£Òª¼ì²âµÄÖµ¡£
·µ»ØÖµ
Èç¹û x ÊÇÌØÊâµÄ·ÇÊý×ÖÖµ NaN£¨»òÕßÄܱ»×ª»»ÎªÕâÑùµÄÖµ£©£¬·µ»ØµÄÖµ¾ÍÊÇ true¡£Èç¹û x ÊÇÆäËûÖµ,Ôò·µ»Ø false¡£
˵Ã÷
isNaN() º¯Êý¿ÉÓÃÓÚÅжÏÆä²ÎÊýÊÇ·ñÊÇ NaN£ ......

WebµÄ½á¹¹¡¢ÐÐΪºÍ±íÏÖ¼°JavaScript ÓïÑÔÌØÐÔ

±ê×¼µÄWeb ×é³ÉÓ¦¸Ã°üÀ¨3 ²¿·Ö£º½á¹¹¡¢ÐÐΪºÍ±íÏÖ¡£ÕâÖÖ˼Ïë×îÔçÔÚ΢ÈíÉè¼ÆµÄ
DHTMLÄ£ÐÍÖгõ²½Ìá³öÀ´£¬µ«ÊǺܲ»¹æ·¶£¬Ò²²»³Éϵͳ¡£ºóÀ´£¬W3C£¨World Wide Web
Consortium£¬ÍòάÍøÁªÃË£©×éÖ¯¹æ·¶ÁËWeb µÄ¹¹³É¡£¸ù¾ÝW3C Öƶ©µÄ±ê×¼£¬Web ±ê×¼²»
ÊÇijһ¸ö±ê×¼£¬¶øÊÇһϵÁбê×¼µÄ¼¯ºÏ¡£ÍêÕûµÄWeb Ó¦¸ÃÓÉÒÔÏÂ3 ²¿·Ö×é³É£º
½á ......

JavaScript ÕýÔò±í´ïʽ Ñ¡Ôñ¡¢·Ö×éºÍÒýÓÃ

JavaScriptµÄÕýÔò±í´ïʽ֧³Ö²¼¶û²Ù×÷£¬³ýÁË×÷Ϊ Ñ¡ÔñµÄ“²¼¶û»ò”²Ù×÷Ö®Í⣬ÕýÔò±í´ïʽ»¹Ö§³Ö·Ö×éºÍÒýÓÃ
¡£ÆäʵѡÔñ¡¢·Ö×éºÍÒýÓõÄ×÷Ó÷ֱðΪ£ºÖ¸¶¨Ñ¡ÔñÏî¡¢¶Ô×Ó±í´ïʽ·Ö×éºÍÒýÓà ǰһ×Ó±í´ïʽµÄÌØÊâ×Ö·û¡£
ÕýÔò±í´ïʽµÄÑ¡Ôñ£º
ËùνѡÔñ¼´ÔÚ¶à¸öÌõ¼þÀïÃæÑ¡ÔñÒ»¸ö£¬±ÈÈç˵ÂôË®¹ûµÄ´óү˵ËÍÄã¸öË®¹û£¬Äã¿ÉÒÔÑ¡Ô ......

JavaScriptÕýÔò±í´ïʽµÄÓ÷¨

JavaScriptÕýÔò±í´ïʽµÄÓ÷¨
ÕýÔò±í´ïʽÊÇÒ»ÖÖ¿ÉÒÔÓÃÓÚģʽƥÅäºÍÌæ»»µÄÇ¿´ó¹¤¾ß£¬ÔںܶàÓïÑÔÖж¼¿ÉÒÔÓ¦Óá£JavaScript¶ÔÕýÔò±í´ïʽÌṩÁ˺ܺõÄÖ§³Ö£¬
JavascriptÖÐÓÐÒ»¸öÕýÔò±í´ïʽ¶ÔÏóRegExp¡£¸Ã¶ÔÏóÌṩÁË´óÁ¿µÄÊôÐԺͷ½·¨À´´¦ÀíÕýÔò±í´ïʽ£¬Í¬Ê±£¬String¶ÔÏóÒ²ÌṩÁËÏà¹ØµÄ·½·¨À´
´¦ÀíÕýÔò±í´ïʽ£¬ÔÚWebÓ¦ÓÃÖУ¬¾­³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ