{"id":544,"date":"2009-07-25T19:53:00","date_gmt":"2009-07-25T11:53:00","guid":{"rendered":""},"modified":"2013-11-17T12:58:27","modified_gmt":"2013-11-17T04:58:27","slug":"asp-net-%e5%b8%b8%e7%94%a827%e4%b8%aa%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/544.html","title":{"rendered":"ASP.NET \u5e38\u752827\u4e2a\u51fd\u6570"},"content":{"rendered":"<p>ASP.Net\u662f\u5efa\u7acb\u5728\u5fae\u8f6f\u65b0\u4e00\u4ee3.Net\u5e73\u53f0\u67b6\u6784\u4e0a\uff0c\u5229\u7528\u666e\u901a\u8bed\u8a00\u8fd0\u884c\u65f6\uff08Common Language Runtime\uff09\u5728\u670d\u52a1\u5668\u540e\u7aef\u4e3a\u7528\u6237\u63d0\u4f9b\u5efa\u7acb\u5f3a\u5927\u7684\u4f01\u4e1a\u7ea7Web\u5e94\u7528\u670d\u52a1\u7684\u7f16\u7a0b\u6846\u67b6\u3002\u4e0b\u9762\u5217\u4e3e\u4e86\u5e38\u7528\u768427\u4e2aASP.NET\u4e2d\u7684\u51fd\u6570\u96c6\uff1a<\/p>\n<p>1\u3001DateTime \u6570\u5b57\u578b<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>System.DateTime currentTime=new System.DateTime();<\/p>\n<p>1.1 \u53d6\u5f53\u524d\u5e74\u6708\u65e5\u65f6\u5206\u79d2 currentTime=System.DateTime.Now;<\/p>\n<p>1.2 \u53d6\u5f53\u524d\u5e74 int \u5e74=currentTime.Year;<\/p>\n<p>1.3 \u53d6\u5f53\u524d\u6708 int \u6708=currentTime.Month;<\/p>\n<p>1.4 \u53d6\u5f53\u524d\u65e5 int \u65e5=currentTime.Day;<\/p>\n<p>1.5 \u53d6\u5f53\u524d\u65f6 int \u65f6=currentTime.Hour;<\/p>\n<p>1.6 \u53d6\u5f53\u524d\u5206 int \u5206=currentTime.Minute;<\/p>\n<p>1.7 \u53d6\u5f53\u524d\u79d2 int \u79d2=currentTime.Second;<\/p>\n<p>1.8 \u53d6\u5f53\u524d\u6beb\u79d2 int \u6beb\u79d2=currentTime.Millisecond;<\/p>\n<p>\uff08\u53d8\u91cf\u53ef\u7528\u4e2d\u6587\uff09<\/p>\n<p>2\u3001Int32.Parse(\u53d8\u91cf) Int32.Parse(&#8220;\u5e38\u91cf&#8221;)<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5b57\u7b26\u578b\u8f6c\u6362 \u8f6c\u4e3a32\u4f4d\u6570\u5b57\u578b<\/p>\n<p>3\u3001 \u53d8\u91cf.ToString()<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5b57\u7b26\u578b\u8f6c\u6362 \u8f6c\u4e3a\u5b57\u7b26\u4e32<\/p>\n<p>12345.ToString(&#8220;n&#8221;); \/\/\u751f\u6210 12,345.00<\/p>\n<p>12345.ToString(&#8220;C&#8221;); \/\/\u751f\u6210 \uffe512,345.00<\/p>\n<p>12345.ToString(&#8220;e&#8221;); \/\/\u751f\u6210 1.234500e+004<\/p>\n<p>12345.ToString(&#8220;f4&#8221;); \/\/\u751f\u6210 12345.0000<\/p>\n<p>12345.ToString(&#8220;x&#8221;); \/\/\u751f\u6210 3039 (16\u8fdb\u5236)<\/p>\n<p>12345.ToString(&#8220;p&#8221;); \/\/\u751f\u6210 1,234,500.00%<\/p>\n<p>4\u3001\u53d8\u91cf.Length \u6570\u5b57\u578b<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u53d6\u5b57\u4e32\u957f\u5ea6\uff1a<\/p>\n<p>\u5982\uff1a string str=&#8221;\u4e2d\u56fd&#8221;;<\/p>\n<p>int Len = str.Length ; \/\/Len\u662f\u81ea\u5b9a\u4e49\u53d8\u91cf\uff0c str\u662f\u6c42\u6d4b\u7684\u5b57\u4e32\u7684\u53d8\u91cf\u540d<\/p>\n<p>5\u3001System.Text.Encoding.Default.GetBytes(\u53d8\u91cf)<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5b57\u7801\u8f6c\u6362 \u8f6c\u4e3a\u6bd4\u7279\u7801<\/p>\n<p>\u5982\uff1abyte[] bytStr = System.Text.Encoding.Default.GetBytes(str);<\/p>\n<p>\u7136\u540e\u53ef\u5f97\u5230\u6bd4\u7279\u957f\u5ea6\uff1a<\/p>\n<p>len = bytStr.Length;<\/p>\n<p>6\u3001System.Text.StringBuilder(&#8220;&#8221;)<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5b57\u7b26\u4e32\u76f8\u52a0\uff0c(+\u53f7\u662f\u4e0d\u662f\u4e5f\u4e00\u6837?)<\/p>\n<p>\u5982\uff1aSystem.Text.StringBuilder sb = new System.Text.StringBuilder(&#8220;&#8221;);<\/p>\n<p>sb.Append(&#8220;\u4e2d\u534e&#8221;);<\/p>\n<p>sb.Append(&#8220;\u4eba\u6c11&#8221;);<\/p>\n<p>sb.Append(&#8220;\u5171\u548c\u56fd&#8221;);<\/p>\n<p>7\u3001\u53d8\u91cf.Substring(\u53c2\u65701,\u53c2\u65702);<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u622a\u53d6\u5b57\u4e32\u7684\u4e00\u90e8\u5206\uff0c\u53c2\u65701\u4e3a\u5de6\u8d77\u59cb\u4f4d\u6570\uff0c\u53c2\u65702\u4e3a\u622a\u53d6\u51e0\u4f4d\u3002<\/p>\n<p>\u5982\uff1astring s1 = str.Substring(0,2);<\/p>\n<p>8\u3001String user_IP=Request.ServerVariables[&#8220;REMOTE_ADDR&#8221;].ToString();<\/p>\n<p>\u53d6\u8fdc\u7a0b\u7528\u6237IP\u5730\u5740<\/p>\n<p>9\u3001\u7a7f\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u53d6\u8fdc\u7a0b\u7528\u6237\u771f\u5b9eIP\u5730\u5740\uff1a<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>if(Request.ServerVariables[&#8220;HTTP_VIA&#8221;]!=null){<\/p>\n<p>string user_IP=Request.ServerVariables[&#8220;HTTP_X_FORWARDED_FOR&#8221;].ToString();<\/p>\n<p>}else{<\/p>\n<p>string user_IP=Request.ServerVariables[&#8220;REMOTE_ADDR&#8221;].ToString();<\/p>\n<p>}<\/p>\n<p>10\u3001 Session[&#8220;\u53d8\u91cf&#8221;];<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5b58\u53d6Session\u503c\uff1b<\/p>\n<p>\u5982\uff0c\u8d4b\u503c\uff1a Session[&#8220;username&#8221;]=&#8221;\u5c0f\u5e03\u4ec0&#8221;;<\/p>\n<p>\u53d6\u503c\uff1a Object objName=Session[&#8220;username&#8221;];<\/p>\n<p>String strName=objName.ToString();<\/p>\n<p>\u6e05\u7a7a\uff1a Session.RemoveAll();<\/p>\n<p>11\u3001String str=Request.QueryString[&#8220;\u53d8\u91cf&#8221;];<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u7528\u8d85\u94fe\u63a5\u4f20\u9001\u53d8\u91cf\u3002<\/p>\n<p>\u5982\u5728\u4efb\u4e00\u9875\u4e2d\u5efa\u8d85\u94fe\u63a5:\u70b9\u51fb<\/p>\n<p>\u5728Edit.aspx\u9875\u4e2d\u53d6\u503c\uff1aString str=Request.QueryString[&#8220;fdid&#8221;];<\/p>\n<p>12\u3001DOC\u5bf9\u8c61.CreateElement(&#8220;\u65b0\u5efa\u8282\u70b9\u540d&#8221;);<\/p>\n<p>\u521b\u5efaXML\u6587\u6863\u65b0\u8282\u70b9<\/p>\n<p>13\u3001\u7236\u8282\u70b9.AppendChild(\u5b50\u8282\u70b9);<\/p>\n<p>\u5c06\u65b0\u5efa\u7684\u5b50\u8282\u70b9\u52a0\u5230XML\u6587\u6863\u7236\u8282\u70b9\u4e0b<\/p>\n<p>14\u3001 \u7236\u8282\u70b9.RemoveChild(\u8282\u70b9);<\/p>\n<p>\u5220\u9664\u8282\u70b9<\/p>\n<p>15\u3001Response<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>Response.Write(&#8220;\u5b57\u4e32&#8221;);<\/p>\n<p>Response.Write(\u53d8\u91cf);<\/p>\n<p>\u5411\u9875\u9762\u8f93\u51fa\u3002<\/p>\n<p>Response.Redirect(&#8220;URL\u5730\u5740&#8221;);<\/p>\n<p>\u8df3\u8f6c\u5230URL\u6307\u5b9a\u7684\u9875\u9762<\/p>\n<p>16\u3001char.IsWhiteSpce(\u5b57\u4e32\u53d8\u91cf\uff0c\u4f4d\u6570)\u2014\u2014\u903b\u8f91\u578b<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u67e5\u6307\u5b9a\u4f4d\u7f6e\u662f\u5426\u7a7a\u5b57\u7b26;<\/p>\n<p>\u5982\uff1a<\/p>\n<p>string str=&#8221;\u4e2d\u56fd \u4eba\u6c11&#8221;;<\/p>\n<p>Response.Write(char.IsWhiteSpace(str,2)); \/\/\u7ed3\u679c\u4e3a\uff1aTrue, \u7b2c\u4e00\u4e2a\u5b57\u7b26\u662f0\u4f4d\uff0c2\u662f\u7b2c\u4e09\u4e2a\u5b57\u7b26\u3002<\/p>\n<p>17\u3001char.IsPunctuation(&#8216;\u5b57\u7b26&#8217;) &#8211;\u903b\u8f91\u578b<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u67e5\u5b57\u7b26\u662f\u5426\u662f\u6807\u70b9\u7b26\u53f7<\/p>\n<p>\u5982\uff1aResponse.Write(char.IsPunctuation(&#8216;A&#8217;)); \/\/\u8fd4\u56de\uff1aFalse<\/p>\n<p>18\u3001(int)&#8217;\u5b57\u7b26&#8217;<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u628a\u5b57\u7b26\u8f6c\u4e3a\u6570\u5b57\uff0c\u67e5\u4ee3\u7801\u70b9\uff0c\u6ce8\u610f\u662f\u5355\u5f15\u53f7\u3002<\/p>\n<p>\u5982\uff1a<\/p>\n<p>Response.Write((int)&#8217;\u4e2d&#8217;); \/\/\u7ed3\u679c\u4e3a\u4e2d\u5b57\u7684\u4ee3\u7801\uff1a20013<\/p>\n<p>19\u3001(char)\u4ee3\u7801<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u628a\u6570\u5b57\u8f6c\u4e3a\u5b57\u7b26\uff0c\u67e5\u4ee3\u7801\u4ee3\u8868\u7684\u5b57\u7b26\u3002<\/p>\n<p>\u5982\uff1a<\/p>\n<p>Response.Write((char)22269); \/\/\u8fd4\u56de\u201c\u56fd\u201d\u5b57\u3002<\/p>\n<p>20\u3001 Trim()<\/p>\n<p>\u6e05\u9664\u5b57\u4e32\u524d\u540e\u7a7a\u683c<\/p>\n<p>21 \u3001\u5b57\u4e32\u53d8\u91cf.Replace(&#8220;\u5b50\u5b57\u4e32&#8221;,&#8221;\u66ff\u6362\u4e3a&#8221;)<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5b57\u4e32\u66ff\u6362<\/p>\n<p>\u5982\uff1a<\/p>\n<p>string str=&#8221;\u4e2d\u56fd&#8221;;<\/p>\n<p>str=str.Replace(&#8220;\u56fd&#8221;,&#8221;\u592e&#8221;); \/\/\u5c06\u56fd\u5b57\u6362\u4e3a\u592e\u5b57<\/p>\n<p>Response.Write(str); \/\/\u8f93\u51fa\u7ed3\u679c\u4e3a\u201c\u4e2d\u592e\u201d<\/p>\n<p>\u518d\u5982\uff1a\uff08\u8fd9\u4e2a\u975e\u5e38\u5b9e\u7528\uff09<\/p>\n<p>string str=&#8221;\u8fd9\u662f&lt;script&gt;\u811a\u672c&#8221;;<\/p>\n<p>str=str.Replace(&#8220;&amp; lt;&#8221;,&#8221;&lt;font&gt;&lt;&lt;\/font&gt;&#8221;); \/\/\u5c06\u5de6\u5c16\u62ec\u53f7\u66ff\u6362\u4e3a&lt;font&gt; \u4e0e &lt; \u4e0e &lt;\/font&gt; \uff08\u6216\u6362\u4e3a&lt;\uff0c\u4f46\u4f30\u8ba1\u7ecfXML\u5b58\u8bf8\u540e\uff0c\u518d\u63d0\u51fa\u4ecd\u4f1a\u8fd8\u539f\uff09<\/p>\n<p>Response.Write(str); \/\/\u663e\u793a\u4e3a\uff1a\u201c\u8fd9\u662f&lt;script&gt;\u811a\u672c\u201d<\/p>\n<p>\u5982\u679c\u4e0d\u66ff\u6362\uff0c&lt;script&gt;\u5c06\u4e0d\u663e\u793a\uff0c\u5982\u679c\u662f\u4e00\u6bb5\u811a\u672c\uff0c\u5c06\u8fd0\u884c\uff1b\u800c\u66ff\u6362\u540e\uff0c\u811a\u672c\u5c06\u4e0d\u8fd0\u884c\u3002<\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u7684\u4ef7\u503c\u5728\u4e8e\uff1a\u4f60\u53ef\u4ee5\u8ba9\u4e00\u4e2a\u6587\u672c\u4e2d\u7684\u6240\u6709HTML\u6807\u7b7e\u5931\u6548\uff0c\u5168\u90e8\u663e\u793a\u51fa\u6765\uff0c\u4fdd\u62a4\u4f60\u7684\u5177\u6709\u4ea4\u4e92\u6027\u7684\u7ad9\u70b9\u3002<\/p>\n<p>\u5177\u4f53\u5b9e\u73b0\uff1a\u5c06\u4f60\u7684\u8868\u5355\u63d0\u4ea4\u6309\u94ae\u811a\u672c\u52a0\u4e0a\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n<p>string strSubmit=label1.Text; \/\/label1\u662f\u4f60\u8ba9\u7528\u6237\u63d0\u4ea4\u6570\u636e\u7684\u63a7\u4ef6ID\u3002<\/p>\n<p>strSubmit=strSubmit.Replace(&#8220;&lt;&#8220;,&#8221;&lt;font&gt;&lt;&lt;\/font&gt;&#8221;);<\/p>\n<p>\u7136\u540e\u4fdd\u5b58\u6216\u8f93\u51fastrSubmit\u3002<\/p>\n<p>\u7528\u6b64\u65b9\u6cd5\u8fd8\u53ef\u4ee5\u7b80\u5355\u5b9e\u73b0UBB\u4ee3\u7801\u3002<\/p>\n<p>22\u3001Math.Max(i,j)<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u53d6i\u4e0ej\u4e2d\u7684\u6700\u5927\u503c<\/p>\n<p>\u5982 int x=Math.Max(5,10); \/\/ x\u5c06\u53d6\u503c 10<\/p>\n<p>\u52a0\u4e00\u70b9\u5427 23\u3001\u5b57\u4e32\u5bf9\u6bd4&#8230;&#8230;<\/p>\n<p>\u52a0\u4e00\u70b9\u5427<\/p>\n<p>23\u3001\u5b57\u4e32\u5bf9\u6bd4\u4e00\u822c\u90fd\u7528: if(str1==str2){ } , \u4f46\u8fd8\u6709\u522b\u7684\u65b9\u6cd5:<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>(1)\u3001<\/p>\n<p>string str1; str2<\/p>\n<p>\/\/\u8bed\u6cd5: str1.EndsWith(str2); __\u68c0\u6d4b\u5b57\u4e32str1\u662f\u5426\u4ee5\u5b57\u4e32str2\u7ed3\u5c3e,\u8fd4\u56de\u5e03\u5c14\u503c.\u5982:<\/p>\n<p>if(str1.EndsWith(str2)){ Response.Write(&#8220;\u5b57\u4e32str1\u662f\u4ee5&#8221;+str2+&#8221;\u7ed3\u675f\u7684&#8221;); }<\/p>\n<p>(2)\u3001<\/p>\n<p>\/\/\u8bed\u6cd5:str1.Equals(str2); __\u68c0\u6d4b\u5b57\u4e32str1\u662f\u5426\u4e0e\u5b57\u4e32str2\u76f8\u7b49,\u8fd4\u56de\u5e03\u5c14\u503c,\u7528\u6cd5\u540c\u4e0a.<\/p>\n<p>(3)\u3001<\/p>\n<p>\/\/\u8bed\u6cd5 Equals(str1,str2); __\u68c0\u6d4b\u5b57\u4e32str1\u662f\u5426\u4e0e\u5b57\u4e32str2\u76f8\u7b49,\u8fd4\u56de\u5e03\u5c14\u503c,\u7528\u6cd5\u540c\u4e0a.<\/p>\n<p>24\u3001IndexOf() \u3001LastIndexOf()<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u67e5\u627e\u5b57\u4e32\u4e2d\u6307\u5b9a\u5b57\u7b26\u6216\u5b57\u4e32\u9996\u6b21\uff08\u6700\u540e\u4e00\u6b21\uff09\u51fa\u73b0\u7684\u4f4d\u7f6e,\u8fd4\u56de\u7d22\u5f15\u503c\uff0c\u5982\uff1a<\/p>\n<p>str1.IndexOf(&#8220;\u5b57&#8221;)\uff1b \/\/\u67e5\u627e\u201c\u5b57\u201d\u5728str1\u4e2d\u7684\u7d22\u5f15\u503c\uff08\u4f4d\u7f6e\uff09<\/p>\n<p>str1.IndexOf(&#8220;\u5b57\u4e32&#8221;)\uff1b\/\/\u67e5\u627e\u201c\u5b57\u4e32\u201d\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5728str1\u4e2d\u7684\u7d22\u5f15\u503c\uff08\u4f4d\u7f6e\uff09<\/p>\n<p>str1.IndexOf(&#8220;\u5b57\u4e32&#8221;,3,2)\uff1b\/\/\u4ecestr1\u7b2c4\u4e2a\u5b57\u7b26\u8d77\uff0c\u67e5\u627e2\u4e2a\u5b57\u7b26\uff0c\u67e5\u627e\u201c\u5b57\u4e32\u201d\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5728str1\u4e2d\u7684\u7d22\u5f15\u503c\uff08\u4f4d\u7f6e\uff09<\/p>\n<p>25\u3001Insert()<\/p>\n<p>\u5728\u5b57\u4e32\u4e2d\u6307\u5b9a\u7d22\u5f15\u4f4d\u63d2\u5165\u6307\u5b9a\u5b57\u7b26\u3002\u5982\uff1a<\/p>\n<p>str1.Insert(1,&#8221;\u5b57&#8221;);\u5728str1\u7684\u7b2c\u4e8c\u4e2a\u5b57\u7b26\u5904\u63d2\u5165\u201c\u5b57\u201d\uff0c\u5982\u679cstr1=&#8221;\u4e2d\u56fd&#8221;\uff0c\u63d2\u5165\u540e\u4e3a\u201c\u4e2d\u5b57\u56fd\u201d\uff1b<\/p>\n<p>26\u3001PadLeft()\u3001PadRight()<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u5728\u5b57\u4e32\u5de6\uff08\u6216\u53f3\uff09\u52a0\u7a7a\u683c\u6216\u6307\u5b9achar\u5b57\u7b26\uff0c\u4f7f\u5b57\u4e32\u8fbe\u5230\u6307\u5b9a\u957f\u5ea6\uff0c\u5982\uff1a<\/p>\n<p>&lt;%<\/p>\n<p>string str1=&#8221;\u4e2d\u56fd\u4eba&#8221;;<\/p>\n<p>str1=str1.PadLeft(10,&#8217;1&#8242;); \/\/\u65e0\u7b2c\u4e8c\u53c2\u6570\u4e3a\u52a0\u7a7a\u683c<\/p>\n<p>Response.Write(str1); \/\/\u7ed3\u679c\u4e3a\u201c1111111\u4e2d\u56fd\u4eba\u201d \uff0c \u5b57\u4e32\u957f\u4e3a10<\/p>\n<p>%&gt;<\/p>\n<p>27\u3001Remove()<\/p>\n<p>\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/p>\n<p>\u4ece\u6307\u5b9a\u4f4d\u7f6e\u5f00\u59cb\u5220\u9664\u6307\u5b9a\u6570\u7684\u5b57\u7b26<\/p>\n<p>\u5b57\u4e32\u5bf9\u6bd4\u4e00\u822c\u90fd\u7528: if(str1==str2){ }<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>ASP.Net\u662f\u5efa\u7acb\u5728\u5fae\u8f6f\u65b0\u4e00\u4ee3.Net\u5e73\u53f0\u67b6\u6784\u4e0a\uff0c\u5229\u7528\u666e\u901a\u8bed\u8a00\u8fd0\u884c\u65f6\uff08Common Language Run [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-544","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=544"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":4612,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions\/4612"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}