推奨:ASP通貨資本化変換機能関数Atoc(A as Currency)as string 'description:この関数は、1兆個未満の通貨変換に適しています。 Aの値は、最大2つの小数点であることが許可されています」は、2つの文字列を定義します。ここでは、漢字と数字が1つの場所で計算されますdim string1として文字列として '次のようにdim string2として "string2として'次のようにdim string3としてdim string3
<% setRecordset1 = server.createObject(adodb.RecordSet) exec = select*fromnewswhereid =&id Recordset1.openexec、conn、1,1 %> <TableWidth = 85%border = 0align = centercellpadding = 3cellspacing = 0> <tr> <td> ......... <% ifrequest(page)= then pagenum = 0 それ以外 pagenum = request(page) endif contentstr = split(recordset1(detail)、||) fori = pagenumtopagenum %> <%= contentstr(i)%> <%next%> </td> </tr> <%ifubund(contentstr)> = 1then%> <tr> <tdheight = 30>この記事は分割されています <% forp = 0toubund(contentsstr) ifp+1 = request(page)+1then a = <fontcolor = red> aa = </font> それ以外 a = aa = endif %> <ahref = detail.asp?id = <%= request(id)%>&page = <%= p%>> <%= a%> <%= p+1%> <%= aa%> </a> <%next%> ページ</td> </tr> <%endif%> |
記事を追加するときは、スプリッター||を追加するだけですページングをしたい場所。
共有:中国語でのみ入力できる方法を制限する方法。関数ischarsinbag(s、bag){var i、c; for(i = 0; i s.length; i ++){c = s.charat(i); //文字列sの文字(bag.indexof(c)-1)return c; } 戻る ; }チェック関数:関数ischinese(s){var errorchar; var badchar = abcdefghijklmnopqrst