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

html»ñÈ¡±¾µØÎļþÁбí

Ò»¡¢¹¦ÄÜʵÏÖºËÐÄ£ºFileSystemObject ¶ÔÏó
ÒªÔÚjavascriptÖÐʵÏÖÎļþ²Ù×÷¹¦ÄÜ£¬Ö÷Òª¾ÍÊÇÒÀ¿¿FileSystemobject¶ÔÏó¡£
¶þ¡¢FileSystemObject±à³Ì
ʹÓÃFileSystemObject ¶ÔÏó½øÐбà³ÌºÜ¼òµ¥£¬Ò»°ãÒª¾­¹ýÈçϵIJ½Ö裺 ´´½¨FileSystemObject¶ÔÏó¡¢Ó¦ÓÃÏà¹Ø·½·¨¡¢·ÃÎʶÔÏóÏà¹ØÊôÐÔ ¡£
£¨Ò»£©´´½¨FileSystemObject¶ÔÏó
´´½¨FileSystemObject¶ÔÏóµÄ
´úÂëÖ»Òª1ÐУº
var fso = new ActiveXObject("Scripting.FileSystemObject");
ÉÏÊö´úÂëÖ´Ðкó£¬fso¾Í³ÉΪһ¸öFileSystemObject¶ÔÏóʵÀý¡£
£¨¶þ£©Ó¦ÓÃÏà¹Ø·½·¨
´´½¨¶ÔÏóʵÀýºó£¬¾Í¿ÉÒÔʹÓöÔÏóµÄÏà¹Ø·½·¨ÁË¡£±ÈÈ磬ʹÓÃCreateTextFile·½·¨´´½¨Ò»¸öÎı¾Îļþ£º
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f1 = fso.createtextfile("c:\\myjstest.txt",true");
£¨Èý£©·ÃÎʶÔÏóÏà¹ØÊôÐÔ
Òª·ÃÎʶÔÏóµÄÏà¹ØÊôÐÔ£¬Ê×ÏÈÒª½¨Á¢Ö¸Ïò¶ÔÏóµÄ¾ä±ú£¬Õâ¾ÍҪͨ¹ýgetϵÁз½·¨ÊµÏÖ£ºGetDrive¸ºÔð»ñÈ¡Çý¶¯Æ÷ÐÅÏ¢£¬GetFolder¸ºÔð»ñÈ¡Îļþ¼ÐÐÅÏ¢£¬GetFile¸ºÔð»ñÈ¡ÎļþÐÅÏ¢¡£±ÈÈ磬ָÏòÏÂÃæµÄ´úÂëºó£¬f1¾Í³ÉΪָÏòÎļþc:\test.txtµÄ¾ä±ú£º
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f1 = fso.GetFile("c:\\myjstest.txt");
È»ºó£¬Ê¹ÓÃf1·ÃÎʶÔÏóµÄÏà¹ØÊôÐÔ¡£±ÈÈ磺
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f1 = fso.GetFile("c:\\myjstest.txt");
alert("File last modified: " + f1.DateLastModified);
Ö´ÐÐÉÏÃæ×îºóÒ»¾äºó£¬½«ÏÔʾc:\myjstest.txtµÄ×îºóÐÞ¸ÄÈÕÆÚÊôÐÔÖµ¡£
µ«ÓÐÒ»µãÇë×¢Ò⣺¶ÔÓÚʹÓÃcreate·½·¨½¨Á¢µÄ¶ÔÏ󣬾Ͳ»±ØÔÙʹÓÃget·½·¨»ñÈ¡¶ÔÏó¾ä±úÁË£¬Õâʱֱ½ÓʹÓÃcreate·½·¨½¨Á¢µÄ¾ä±úÃû³Æ¾Í¿ÉÒÔ£º
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f1 = fso.createtextfile("c:\\myjstest.txt",true");
alert("File last modified: " + f1.DateLastModified);
Èý¡¢²Ù×÷Çý¶¯Æ÷£¨Drives£©
ʹÓÃFileSystemObject¶ÔÏóÀ´±à³Ì²Ù×÷Çý¶¯Æ÷£¨Drives£©ºÍÎļþ¼Ð£¨Folders£©ºÜÈÝÒ×£¬Õâ¾ÍÏóÔÚWindowsÎļþä¯ÀÀÆ÷ÖжÔÎļþ½øÐн»»¥²Ù×÷Ò»Ñù£¬±ÈÈ磺¿½±´¡¢Òƶ¯Îļþ¼Ð£¬»ñÈ¡Îļþ¼ÐµÄÊôÐÔ¡£
£¨Ò»£©Drives¶ÔÏóÊôÐÔ
Drive¶ÔÏó¸ºÔðÊÕ¼¯ÏµÍ³ÖеÄÎïÀí»òÂß¼­Çý¶¯Æ÷×ÊÔ´ÄÚÈÝ£¬Ëü¾ßÓÐÈçÏÂÊôÐÔ£º
l TotalSize£ºÒÔ×Ö½Ú£¨byte£©Îªµ¥Î»¼ÆËãµÄÇý¶¯Æ÷´óС¡£
l AvailableSpace»òFreeSpace£ºÒÔ×Ö½Ú£¨byte


Ïà¹ØÎĵµ£º

IText Éú³Értf ÄÚÈÝÖк¬ÓÐHTML±êÇ©´¦Àí

import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.StringReader;
import java.util.List;
import com.lowagie.text.Document;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.html.simpleparser.HTMLWorker;
import com.lowagie.te ......

Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þ

Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þ
¡¡¡¡Html¿Ø¼þÎÞÐè¶à˵£¬×î³£ÓõĿؼþ£¬ASPʱ´úµÄΨһѡÔñ£¬ÊÀ½ç¿ªÊ¼µÄʱºòËü¾ÍÔÚÄÇ¡£µ±Î¢ÈíÍƳö.Netºó£¬ÎªÁËÌṩASP.Net Web Form¿ª·¢ÒÔºÍWin Form¿ª·¢ÏàËƵĿª·¢ÌåÑ飬ÍƳöÁËWeb·þÎñÆ÷¿Ø¼þ£¨Server Control£©£¬ÓÖ³ÆASP.Net·þÎñÆ÷¿Ø¼þ¡£¶øHtml·þÎñÆ÷¿Ø¼þ£¨Html Server Control£©£ ......

ËÑË÷½á¹û¸ßÁÁÏÔʾ(²»¸Ä±ähtml±êÇ©)

Ò»¡¢ÎÊÌâµÄ²úÉú
¡¡¡¡ËÑË÷½á¹û¸ßÁÁÏÔʾ£¬ÔÚÐÂÎűêÌ⣬À´Ô´Ö®ÀàµÄµØ·½ºÃ×ö£¬Ö»ÐèÒªÓÃstr.Replace(keyword,"<font style=\"color:red;\"" + keyword +"</font>");ÕâÑùµÄ·½·¨¾Í¿ÉʵÏÖ¡£
¡¡¡¡ÎÊÌâÔÚÓÚ£¬ÔÚÐÂÎÅÄÚÈÝÀï×öËÑË÷¡£ÆäÖÐhtml±êÇ©Àï¿ÉÄܺ¬Óйؼü×Ö£¬ÓÃÉÏÃæÕâÖÖ·½·¨£¬½«»áÌæ»»µôhtml±êÇ©µÄ²¿·ÖÄÚÈÝ£¬µ¼ÖÂÐÂÎÅÄÚ ......

´´½¨×Ô¶¨ÒåHTML Helper

´Ë½Ì³ÌÏòÄãÑÝʾÈçºÎÔÚÄãµÄMVCÊÓͼÀï´´½¨×Ô¶¨ÒåHTML Helper¡£ÀûÓà HTML Helpers, ¿ÉÒÔ¼õÉÙ·¦Î¶µÄÊäÈëHTML±êÇ©¡£
Ôڽ̵̳ĵÚÒ»²¿·Ö£¬ÎÒÃèÊöÁËASP.NET MVC¿ò¼ÜÒÑÓеÄHTML Helper¡£È»ºó£¬ÎÒÃèÊöÁË´´½¨×Ô¶¨ÒåHTML HelperµÄÁ½¸ö·½·¨£ºÎÒ»á½âÊÍÈçºÎͨ¹ý´´½¨¾²Ì¬·½·¨ºÍÀ©Õ¹·½·¨À´´´½¨HTML Helper¡£
Àí½â HTML Helper
HTML Helper ......

¹ØÓÚasp.net¶¯Ì¬Îļþת¾²Ì¬µÄhtmlÎļþ£¡

Èç¹ûҪת»¯µÄÒ³ÃæÖ»ÓÐÒ»Á½¸ö£¬ÇÒÁ½ÕßÖ®¼äµÄûʲô¹ØÁª£¬¾Í¿ÉÒÔÓÃÌæ»»·½·¨ÊµÏÖ£¬ÏÈÓÃhtml±àдºÃÒ»ÕÅÍøÒ³£¬ÔÚÐèÒªÓõ½Êý¾Ý¿âµÄµØ·½ÓÃÌØÊâµÄ±êÇ©±ê¼Ç×Å£¬ÀýÈç&idµÈ¡£ÔÚÓÃ.net±àдһÕÅaspxÍøÒ³ÓÃÓÚ°ÑÕâЩ±êÇ©Ìæ»»³ÉÏëÒªµÄÊý¾Ý¿âÄÚÈÝ£¬ÕâÑù¾ÍÐÐÁË¡£²»¹ý±È½ÏÂé·³µÄÊÇÿ´Î¸üÐÂÊý¾Ý¿â¶¼Òª×ª»¯Ò»´Î¡£
»¹ÓоÍÊÇÈç¹ûÊÇÍøÒ³Ö®¼äÓк ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ