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

JavascriptÖеÄÕýÔò±í´ïʽ——Ïê½â

ÿ´ÎÓõÄʱºò¶¼ÒªÕÒÒ»±é×ÊÁÏ£¬×ÁÄ¥Ò»±éÓï·¨£¬²»Ê¤Æä·³£¬ÖÕÓÚ϶¨¾öÐÄ°ÑËûÃǶ¼¼ÇÏÂÀ´£¬Ò»´ÎÐԸ㶨£¬ÓÀ¾øºó»¼£¡:)
Ò»¡¢Ê²Ã´ÊÇÕýÔò±í´ïʽ£¿
    ¼òµ¥µØ˵£¬¾ÍÊÇ»ùÓÚ×Ö·û´®µÄģʽƥÅ乤¾ß¡£Êµ¼ÊÓ¦ÓÃÖаüÀ¨×Ö·û´®µÄ²éÕÒ¡¢ÌáÈ¡¡¢Ìæ»»µÈµÈ¡£
¶þ¡¢»ù±¾Óï·¨
    JavascriptÖеÄÕýÔò±í´ïʽµÄÐÎʽһ°ãÈçÏ£º
    /……/
ÆäÖГ/”Ϊ¶¨½ç·û£¬Á½¸ö“/”ÖÐΪģʽ×Ö·û´®£¬Ò²¾ÍÊÇÓû§½«Òª²éÕҵĶÔÏóµÄģʽ£¬È磺/a?b+c*/¡£¸Ã±í´ïʽ±íʾµÄ×Ö·û´®µÄ¹¹³ÉģʽΪ£º0¸ö»ò1¸öa¿ªÍ·£¬½Ó×ÅÊÇ1¸öÒÔÉϵÄb£¬×îºóÊÇÈÎÒâ¸öc£¨º¬0¸ö£©£¬Èçb£¬ab£¬bc£¬abc£¬bb£¬abb£¬abbcc£¬……¡£
1£®Öظ´Æ¥ÅäÓï·¨
ÔÚÉÏÊö±í´ïʽÖÐÓÐ3¸ö×î³£ÓõÄģʽ±íʾ·û“?”¡¢“+”¡¢“*”£¬ÕýÔò±í´ïʽÖгÆΪ“Ôª×Ö·û”£¬ËûÃǵĺ¬ÒåÈçÏ£º
    “?”£º±¾×Ö·ûÇ°ÃæµÄ×Ö·û£¨»ò×Ö·û´®»ò±í´ïʽ£©Ö»ÄܳöÏÖ0´Î»ò1´Î£»
    “+”£º±¾×Ö·ûÇ°ÃæµÄ×Ö·û£¨»ò×Ö·û´®»ò±í´ïʽ£©×îÉÙ³öÏÖ1´Î£»
    “*”£º±¾×Ö·ûÇ°ÃæµÄ×Ö·û£¨»ò×Ö·û´®»ò±í´ïʽ£©¿ÉÒÔ³öÏÖÈÎÒâ´Î¡£
    ÉÏÃæµÄ3¸öÔª×Ö·ûģʽÊǹ̶¨µÄ£¬²¢²»Áé»î£¬Èç¹ûÒªÊÖ¹¤¶¨ÖÆ£¬¿ÉÒÔʹÓÃÈçÏÂģʽ£º
    {n}£ºn >= 0£¬Æ¥Åän´Î£¬Èç'o{2}'£¬ÄÜÆ¥Åäfood£¬µ«²»ÄÜÆ¥ÅäTom¡£
    {n,}£ºn >= 0£¬Æ¥Åän´ÎÒÔÉÏ£¬Èç'o{2,}'£¬¿ÉÒÔÆ¥Åäfood,foood,fooood,……¡£
    {n,m}£ºn >= 0£¬m >= 0, n <= m £¬×îÉÙÆ¥Åän´ÎÇÒ×î¶àÆ¥Åäm´Î£¬Èç'o{2,3}'£¬¿ÉÒÔÆ¥Åäfood,foood¡£
ÒÔÉϽéÉܵÄΪÖظ´Æ¥ÅäÓï·¨£¬×ܽáÈçÏ£º
Öظ´Óï·¨
Óï·¨½âÊÍ
Óï·¨Àý×Ó
?
Æ¥Åä0»ò1´Î
5?Æ¥Åä5»ò0£¬²»Æ¥Åä·Ç5ºÍ0
+
Æ¥ÅäÒ»´Î»ò¶à´Î
\S+Æ¥ÅäÒ»¸öÒÔÉÏ\S£¬²»Æ¥Åä·ÇÒ»¸öÒÔÉÏ\S
*
Æ¥Åä0´ÎÒÔÉÏ
\W*Æ¥Åä0ÒÔÉÏ\W£¬²»Æ¥Åä·ÇN*\W
{n}
Æ¥Åän´Î×Ö·û
\d{3}Æ¥Åä\d\d\d,²»Æ¥Åä\d\d»ò\d\d\d\d
{n,}
Æ¥Åän´ÎºÍn´ÎÒÔÉÏ
\w{2}Æ¥Åä\w\wºÍ\w\w\wÒÔÉÏ,²»Æ¥Åä\w
{n,m}
Æ¥Åän´ÎÉÏm´ÎÏÂ
\s{1,3}Æ¥Åä\s,\s\s,\s\s\s,²»Æ¥Åä\s\s\s\s
¸÷ÖÖÆ¥ÅäÓï·¨µÄʹÓ÷½·¨ÓëÉÏÃæÀàËÆ£¬²»ÔÙÏêÊö£¬ÂÞÁÐÈçÏ£º
2£®×Ö·ûÆ¥ÅäÓï·¨£º
×Ö·ûÓï·¨
Óï·¨½âÊÍ
Óï·¨Àý×Ó
\d
Æ¥ÅäÊý×Ö£¨0~9£©
‘\d’Æ¥Åä8,²»Æ¥Åä12£»
\D
Æ¥Åä·


Ïà¹ØÎĵµ£º

JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2

Ô­ÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2-showModalDialog  
ǰһƪÎÄÕÂJavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµÖн²µ½ÁËÈçºÎÀûÓÃwindow.open()·½·¨´ò¿ªÐ´°Ì壬²¢ÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµµÄ·½·¨¡£javascriptÖл¹ÓÐÒ»¸öº¯Êýwindow.showModalDialogÒ²¿ÉÒÔ´ò¿ªÒ»¸öд°Ì壬²»¹ýËû´ò¿ªµÄÊÇÒ»¸öģ̬´°¿Ú£¬ÄÇôÈçºÎÔÚ¸¸´°Ì ......

javascriptʵÏÖ¶ÔÎļþÉÏ´«ÀàÐ͵ÄÏÞÖÆ

×¢£º http://www.java114.com/277/content4355.html
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> upload </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME ......

ËøÆÁJavaScriptƬ¶Î

var docEle = function() {
return document.getElementById(arguments[0]) || false;
}
function cloDiv(){
var overlayID="overlay";
var msgID = "overlayMsg";
document.body.removeChild(docEle(overlayID));
document.body.removeChild(docEle(msgID));
}
function openNewDiv() {
......

9.22 CSS¸´ºÏÊôÐÔºÍJavaScriptÔÚHtmlÒ³ÃæÖеÄÖ´ÐÐ˳Ðò

CSS¸´ºÏЧ¹û
CSSµÄЧ¹ûÊÇ¿ÉÒÔÖصþµÄ£¬ÀýÈçclass="a b"£¬ÄÇôÕâ¸ö½Úµã¾ÍͬʱӵÓÐÁËaºÍbµÄÊôÐÔ£¬²¢ÇÒ£¬b¿ÉÒÔ¸²¸ÇaµÄÊôÐÔ¡£
JavaScriptÔÚHtmlÖеÄÖ´ÐÐ˳Ðò
¾­¹ý¼òµ¥²âÊÔ£¬·¢ÏÖJavaScriptµÄÖ´ÐÐ˳ÐòÊÇ°´ÕÕjsµÄ¼ÓÔØ˳Ðò½øÐеģ¬¶øonloadº¯ÊýÊÇÔÚÕû¸öÒ³Ãæ¼ÓÔØÍê³Éºó²Å¿ªÊ¼Ö´ÐС£
ÎҵIJâÊÔÎļþ£º
<!--
To change this ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ