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

ÏÂÀ­¿òÊ÷,HTML´úÂë

     ºÜ¶àʱºò£¬ÎÒÃÇÐèÒª½«ÏÂÀ­¿òÀïÃæµÄÊý¾ÝÓÃÊ÷ÏÔʾ³öÀ´£¬ÕâÑù»á±ãÓÚ¿Í»§µÃµ½ÇåÎúµÄÊý¾Ý£¬¶øÇұȽÏÖ±½Ó£¬ÁÀ³öÒÔÏÂHTML´úÂ룬¿ÉÒÔÖ±½Ó¸´ÖƵ½HTML´úÂëÀïÃæÔËÐУ¡
    <!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=utf-8" />
<title></title>
<script>
/*****************************************
auth: polarbear
data: 2009.04.17
******************************************/
//ucstar select
//id: select id
//name: select attribute name
//rootSelectname: select first option value
//sign: iterator options's prefix sign
//selectid: about the selected option id
function UcstarSelectObj(id,name,rootSelectname,sign,selectedid) {
 this.id = id;
 this.name = name;
 this.rootSelectname = rootSelectname;
 this.sign = sign;
 this.selectedid = selectedid;
 this.selectStr = "";
 this.ucstaroptions = [];
 this.ucstaroptionobjs = [];
}
//ucstar option
//id: option id
//name: option value
//pid: the node's parent id
//desc: the option's description
function UcstarOption(id,name,pid,desc) {
 this.id = id;
 this.name = name;
 this.pid = pid;
 this.desc = desc;
}
//get the options by parentid
UcstarSelectObj.prototype.getChildOptions = function(vPid) {
 var childOptions = new Array();
 //this.debug(this.ucstaroptions.length);
 for(var i = 0; i < this.ucstaroptions.length; i++) {
  if(this.ucstaroptions[i].pid == vPid) {
   //this.debug(this.ucstaroptions[i].pid + "-" + this.ucstaroptions[i].id);
   childOptions[childOptions.length] = this.ucstaroptions[i];
  }
 }
 return childOptions;
}
//debug message
UcstarSelectObj.prototype.debug = function(message) {
 


Ïà¹ØÎĵµ£º

ÓйØÈ¥µôhtmlÖеÄÁ½¶Ë×Ö·û

ÈçºÎÓÐÒ»¸ö×Ö·û´®ÊÇÕâÑùµÄÐÎʽstr = "&bbbLAA";
ÏëµÃµ½"L"µÄ»°¿ÉÒÔÕâÑùȥʵÏÖ£º
//sDataStr = "&bbbLAA";
//sLeftQuote = ""&bbb";
//sRightQuote = "&AA";
µ÷ÓÃÕâ¸ö·½·¨½«µÃµ½L×ֶΡ£
function abCutString( sDataStr, sLeftQuote, sRightQuote)
{
 var sReturnVal = '';
 var nStart ......

c#´ÓhtmlÖлñȡͼƬµØÖ·

 
using System.Text.RegularExpressions;
string ohtml = this.TextBox1.Text;
            System.Text.RegularExpressions.MatchCollection m;
            //ÌáÈ¡×Ö·û´®µÄͼƬ
   ......

XHTMLºÍHTMLµÄÇø±ð

ÒòΪWap2.0ʹÓÃXHTMLÓïÑÔ²¢¼æÈÝWML£¬ÒÔÏÂÊÇÍøÉÏÕÒµÄXHTMLºÍHTMLµÄÇø±ð
XHTMLÏà±ÈÓÚHTML
  1.ËùÓеıê¼Ç¶¼±ØÐëÒªÓÐÒ»¸öÏàÓ¦µÄ½áÊø±ê¼Ç
  ÒÔÇ°ÔÚHTMLÖУ¬Äã¿ÉÒÔ´ò¿ªÐí¶à±êÇ©£¬ÀýÈçºÍ<li>¶ø²»Ò»¶¨Ð´¶ÔÓ¦µÄ
  ºÍ</li>À´¹Ø±ÕËüÃÇ¡£µ«ÔÚXHTMLÖÐÕâÊDz»ºÏ·¨µÄ¡£XHTMLÒªÇóÓÐÑϽ÷µÄ½á¹¹£¬ËùÓбêÇ©±ØÐë ......

ʹÓÃperl·ÖÎöhtmlÎļþ

Ô­ÎĵØÖ·£ºhttp://bbs.chinaunix.net/viewthread.php?tid=1316204
Ç°ÌìÑо¿Ê¹ÓÃHTML::TreeBuilderÄ£¿é·ÖÎöÍøÒ³£¬¿´µ½ÁËһƪÎÄÕ£¬Ë³±ã¾Í·­ÒëÁËһϣ¬·¢ÉÏÀ´·ÖÏí¡£±¾ÈËÎıʲ»ºÃ£¬eÎÄˮƽÓÐÏÞ£¬´ó¼Ò´éºÏ¿´°É¡£
Ô­ÎĵØÖ·£ºhttp://www.perl.com/pub/a/2006/01/19/analyzing_html.html?page=1
ÎÄÕµı³¾°ÊÇ£¬×÷ÕßÔÚ½ÌÊÚÍøÒ³ ......

StrutsÖÐhtml±êÇ©µÄÓ÷¨

±êÇ©ÓÃÓÚÉú³ÉÒ»¸öHTML form¡£Ê¹Óøñêǩʱ±ØÐë×ñÑ­Ðí¶à¹æÔò¡£
Ê×ÏÈ£¬±êÇ©ÖбØÐë°üº¬Ò»¸öactionÊôÐÔ£¬ËüÊÇÕâ¸ö±êÇ©ÖÐΨһ±ØÐèµÄÊôÐÔ¡£Èç¹û²»¾ß±¸¸ÃÊôÐÔÔòJSPÒ³Ãæ»áÅ׳öÒ»¸öÒì³£¡£Ö®ºóÄã±ØÐë¸øÕâ¸öactionÊôÐÔÖ¸¶¨Ò»¸öÓÐЧֵ¡£Ò»¸öÓÐЧֵÊÇÖ¸Ó¦ÓóÌÐòµÄStrutsÅäÖÃÎļþÖÐÔªËØÀïµÄÈκÎÒ»¸ö×ÓÔªËصķÃÎÊ·¾¶¡£¶øÇÒÏàÓ¦µÄÔªËØÖб ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ