{"id":66896,"date":"2014-10-17T19:26:33","date_gmt":"2014-10-17T11:26:33","guid":{"rendered":"http:\/\/www.xiaoyebailong.com\/?p=66896"},"modified":"2014-10-17T19:26:33","modified_gmt":"2014-10-17T11:26:33","slug":"asp%e8%b4%a7%e5%b8%81%e9%87%91%e9%a2%9d%e8%bd%ac%e6%8d%a2","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2014\/10\/17\/66896.htm","title":{"rendered":"asp\u8d27\u5e01\u91d1\u989d\u8f6c\u6362"},"content":{"rendered":"<p>&lt;%<br \/>\nFunction uMoney(money)<br \/>\nIf Not IsNumeric(money) or money&gt;9999999999999.99 Then<br \/>\nuMoney=&#8221;\u8d85\u51fa\u8303\u56f4&#8221;<br \/>\nExit Function<br \/>\nelse<br \/>\nuMoney=&#8221;&#8221;<br \/>\nend if<br \/>\nDim numList : numList = array(&#8220;\u96f6&#8221;,&#8221;\u58f9&#8221;,&#8221;\u8d30&#8221;,&#8221;\u53c1&#8221;,&#8221;\u8086&#8221;,&#8221;\u4f0d&#8221;,&#8221;\u9646&#8221;,&#8221;\u67d2&#8221;,&#8221;\u634c&#8221;,&#8221;\u7396&#8221;)<br \/>\nDim rmbList : rmbList = array(&#8220;\u5143&#8221;,&#8221;\u62fe&#8221;,&#8221;\u4f70&#8221;,&#8221;\u4edf&#8221;,&#8221;\u4e07&#8221;,&#8221;\u62fe&#8221;,&#8221;\u4f70&#8221;,&#8221;\u4edf&#8221;,&#8221;\u4ebf&#8221;,&#8221;\u62fe&#8221;,&#8221;\u4f70&#8221;,&#8221;\u4edf&#8221;,&#8221;\u4e07&#8221;)<br \/>\nDim rList : rList = array(&#8220;\u96f6\u5206&#8221;,&#8221;\u96f6\u89d2&#8221;,&#8221;\u96f6\u5143&#8221;,&#8221;\u96f6\u62fe&#8221;,&#8221;\u96f6\u4f70&#8221;,&#8221;\u96f6\u4edf&#8221;,&#8221;\u96f6\u4e07&#8221;,&#8221;\u96f6\u4ebf&#8221;)<br \/>\nDim tList : tList = array(&#8220;\u6574&#8221;,&#8221;\u96f6&#8221;,&#8221;\u5143&#8221;,&#8221;\u96f6&#8221;,&#8221;\u96f6&#8221;,&#8221;\u96f6&#8221;,&#8221;\u4e07&#8221;,&#8221;\u4ebf&#8221;)<br \/>\nmoney = cStr(FormatNumber(money,2,0,0,0))<br \/>\nDim moneyArr : moneyArr = split(money,&#8221;.&#8221;)<br \/>\nDim mLen : mLen = len(moneyArr(0))<br \/>\nDim i,n<br \/>\nfor i=1 to mLen<br \/>\nn = int(Mid(moneyArr(0),i,1))<br \/>\nuMoney = uMoney &amp; numList(n) &amp; rmbList(mLen-i)<br \/>\nnext<br \/>\nuMoney = uMoney &amp; numList(left(moneyArr(1),1)) &amp; &#8220;\u89d2&#8221; &amp; numList(right(moneyArr(1),1)) &amp; &#8220;\u5206&#8221;<br \/>\nfor i=0 to ubound(rList)<br \/>\nuMoney = replace(uMoney,rList(i),tList(i))<br \/>\nnext<br \/>\nwhile instr(uMoney,&#8221;\u96f6\u96f6&#8221;)&lt;&gt;0<br \/>\nuMoney = replace(uMoney,&#8221;\u96f6\u96f6&#8221;,&#8221;\u96f6&#8221;)<br \/>\nwend<br \/>\nuMoney = Replace(uMoney, &#8220;\u96f6\u4ebf&#8221;, &#8220;\u4ebf&#8221;)<br \/>\nuMoney = Replace(uMoney, &#8220;\u96f6\u4e07&#8221;, &#8220;\u4e07&#8221;)<br \/>\nuMoney = Replace(uMoney, &#8220;\u4ebf\u4e07&#8221;, &#8220;\u4ebf&#8221;)<br \/>\nuMoney = Replace(uMoney, &#8220;\u96f6\u5143&#8221;, &#8220;\u5143&#8221;)<br \/>\nuMoney = Replace(uMoney, &#8220;\u96f6\u6574&#8221;, &#8220;\u6574&#8221;)<br \/>\nEnd Function<br \/>\n%&gt;<br \/>\n&lt;%<br \/>\nresponse.write uMoney(201410.17)<br \/>\n%&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;% Function uMoney(money) If Not IsNumeric(money) or money&gt;9999999999999.99 Then uMoney=&#8221;\u8d85\u51fa\u8303\u56f4&#8221; Exit Fu&#8230;<\/p>\n","protected":false},"author":1,"featured_media":66897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,92,93],"topic":[],"class_list":["post-66896","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-asp","tag-92","tag-93"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/66896","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=66896"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/66896\/revisions"}],"predecessor-version":[{"id":66898,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/66896\/revisions\/66898"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media\/66897"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=66896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=66896"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=66896"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=66896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}