{"id":217,"date":"2008-12-05T09:38:09","date_gmt":"2008-12-05T01:38:09","guid":{"rendered":""},"modified":"2014-02-27T23:00:25","modified_gmt":"2014-02-27T15:00:25","slug":"%e8%ae%a9%e4%bb%8e%e6%95%b0%e6%8d%ae%e4%bf%9d%e6%8c%81%e5%8e%9f%e6%9d%a5%e7%9a%84%e6%a0%bc%e5%bc%8f","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/12\/05\/217.htm","title":{"rendered":"\u8ba9\u4ece\u6570\u636e\u4fdd\u6301\u539f\u6765\u7684\u683c\u5f0f"},"content":{"rendered":"<p>\u5982\u4f55\u8ba9\u6570\u636e\u4ece\u6570\u636e\u5e93\u91cc\u8bfb\u51fa\u6765\u80fd\u591f\u4fdd\u6301\u5f55\u5165\u65f6\u5019\u7684\u683c\u5f0f\uff1f<br \/>\n\u5982\uff1a<\/p>\n<p>\u6b22\u8fce\u6765\u5230&ldquo;\u84dd\u8272\u7406\u60f3&rdquo;\u4e4b&ldquo;\u7ecf\u5178\u8bba\u575b&rdquo;\u3002<br \/>\n\u5728\u8fd9\u91cc\u60a8\u53ef\u4ee5\u5728\u6280\u672f\u533a\u63d0\u4e00\u4e9b\u7591\u60d1\u7684\u95ee\u9898\uff0c\u8ba9\u5927\u5bb6\u5e2e\u60a8\u89e3\u7b54\u3002<br \/>\n\u4f46\u8bf7\u8bb0\u4f4f\uff0c\u4e0d\u8981\u53d1\u4efb\u4f55\u89e6\u53ca\u6cd5\u5f8b\u7684\u5e16\u5b50\uff0c\u95ee\u95ee\u9898\u4e5f\u8bf7\u5199\u660e\u95ee\u9898\u7684\u5177\u4f53\u60c5\u51b5\uff01<\/p>\n<p>\u6211\u60f3\u8fd9\u4e2a\u5927\u90e8\u4efd\u7684\u4eba\u90fd\u5728\u95ee\u5982\u4f55\u8ba9\u9875\u9762\u663e\u793a\u7684\u65f6\u5019\u8be5\u56de\u8f66\u7684\u65f6\u5019\u56de\u8f66\uff0c\u8be5\u7a7a\u683c\u7684\u65f6\u5019\u7a7a\u683c\u3002<br \/>\n\u4e0b\u9762\u6211\u5c31\u628a\u89e3\u51b3\u8fd9\u90e8\u4efd\u7684\u4ee3\u7801\u8d34\u51fa\u6765\u5927\u5bb6\u53c2\u8003\uff1a<\/p>\n<p>\u8fd9\u4e00\u6bb5\u4ee3\u7801\u662f\u541b\u4e09\u601d\u7684\u4ee3\u7801\uff1a<\/p>\n<p>\u4ee3\u7801\u62f7\u8d1d\u6846<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#f3f3f3\" style=\"word-wrap: break-word\"><font style=\"font-weight: bold; color: #990000\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/font><br \/>\n            <font face=\"Verdana\">&lt;%<br \/>\n            &#8216;\u4e2d\u6587\u5904\u7406\u51fd\u6570<br \/>\n            sub ShowBody(Str)<br \/>\n            dim result<br \/>\n            dim l <br \/>\n            l=len(str)<br \/>\n            result=&quot;&quot;<br \/>\n            dim i<br \/>\n            for i = 1 to l<br \/>\n            select case mid(str,i,1)<br \/>\n            case chr(32)&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u5904\u7406\u7a7a\u683c\u7b26<br \/>\n            if i+1&lt;=l and i-1&gt;0 then<br \/>\n            if mid(str,i+1,1)=chr(32) or mid(str,i+1,1)=chr(9) or mid(str,i-1,1)=chr(32) or mid(str,i-1,1)=chr(9) then<br \/>\n            result=result+&quot;&amp;nbsp;&quot;<br \/>\n            else<br \/>\n            result=result+&quot; &quot;<br \/>\n            end if<br \/>\n            else<br \/>\n            result=result+&quot;&amp;nbsp;&quot;&nbsp;&nbsp;&nbsp;&nbsp; <br \/>\n            end if<br \/>\n            case chr(9) &#8216;\u5904\u7406\u7a7a\u683c\u7b26<br \/>\n            result=result+&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;<br \/>\n            case chr(13) &#8216;\u5904\u7406\u56de\u8f66\u7b26<br \/>\n            result=result+&quot;&lt;br&gt;&quot;<br \/>\n            case else<br \/>\n            result=result+mid(str,i,1)<br \/>\n            end select<br \/>\n            next <br \/>\n            response.write result<br \/>\n            end sub<br \/>\n            sub display(str)<br \/>\n            if not isNULL(str) then <br \/>\n            showbody str<br \/>\n            end if<br \/>\n            end sub<br \/>\n            %&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f15\u7528\u7684\u65f6\u5019\u53ef\u4ee5\u8fd9\u6837\u5f15\u7528\uff1a<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5982\u4f60\u7684\u4ee3\u7801\u8bfb\u53d6\u51fa\u6765\u8d4b\u4e8e\u4e00\u53d8\u91cf\uff1acontent<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5219\u8fd9\u6837\u5f15\u7528\uff1a&lt;%=ShowBody(content)%&gt;\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u73b0\u5728\u8bba\u575b\u91cc\u4e5f\u6709\u4e00\u79cd\u76f8\u5bf9\u4e8e\u8fd9\u4e2a\u8f83\u7b80\u5355\u7684\u4ee3\u7801\uff1a<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#f3f3f3\" style=\"word-wrap: break-word\"><font style=\"font-weight: bold; color: #990000\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/font><\/p>\n<p><font face=\"Verdana\">&lt;%<br \/>\n            Function HtmlEncode(fstring)<\/font><\/p>\n<p><font face=\"Verdana\">&nbsp;&nbsp; fstring = Replace(fstring,Chr(32),&quot;&amp;nbsp;&quot;)<br \/>\n            &nbsp;&nbsp; fstring = Replace(fstring,Chr(9),&quot;&amp;nbsp;&quot;)<br \/>\n            &nbsp;&nbsp; fstring = Replace(fstring,Chr(39),&quot;&amp;#39;&quot;)<br \/>\n            &nbsp;&nbsp; fstring = Replace(fstring,Chr(10),&quot;&lt;br&gt;&quot;)<br \/>\n            &nbsp;&nbsp; fstring = Replace(fstring,Chr(10)&amp;Chr(10),&quot;&lt;p&gt;&lt;\/p&gt;&quot;)<br \/>\n            &nbsp;&nbsp; fstring = Replace(fstring,Chr(34),&quot;&amp;quot;&quot;)<br \/>\n            &nbsp;&nbsp; fstring = Replace(fstring,Chr(13),&quot;&quot;)<br \/>\n            &nbsp;&nbsp; <br \/>\n            &nbsp;&nbsp; HtmlEncode = fstring<\/font><\/p>\n<p><font face=\"Verdana\">End Function<br \/>\n            %&gt;<\/font><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f15\u7528\u65b9\u6cd5\uff08\u60c5\u51b5\u5982\u4e0a\uff09\uff1a&lt;%=HtmlEncode(content)%&gt;\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u5982\u679c\u8fd8\u6709\u5176\u4ed6\u7684\u4ee3\u7801\uff0c\u53ef\u4ee5\u5230\u8bba\u575b\u91cc\u8d34\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u8ba9\u6570\u636e\u4ece\u6570\u636e\u5e93\u91cc\u8bfb\u51fa\u6765\u80fd\u591f\u4fdd\u6301\u5f55\u5165\u65f6\u5019\u7684\u683c\u5f0f\uff1f \u5982\uff1a \u6b22\u8fce\u6765\u5230&ldquo;\u84dd\u8272\u7406\u60f3&rdquo;\u4e4b&ldquo;\u7ecf\u5178\u8bba\u575b&rdquo;\u3002 \u5728\u8fd9\u91cc\u60a8\u53ef\u4ee5\u5728\u6280\u672f\u533a\u63d0\u4e00\u4e9b\u7591\u60d1\u7684\u95ee\u9898\uff0c\u8ba9\u5927\u5bb6\u5e2e\u60a8\u89e3\u7b54\u3002 \u4f46\u8bf7\u8bb0\u4f4f\uff0c\u4e0d\u8981\u53d1\u4efb\u4f55\u89e6\u53ca\u6cd5\u5f8b\u7684\u5e16\u5b50\uff0c\u95ee\u95ee&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":66086,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/217\/revisions\/66086"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=217"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}