欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp 關(guān)鍵詞字符串分割如何實(shí)現(xiàn)方法

 更新時(shí)間:2007年11月23日 21:59:13   作者:  

我想做META關(guān)鍵字,比如我的標(biāo)題顯示ASP代碼是:<% =objrs("Title")%>
如果<% =objrs("Title")%>最終顯示的標(biāo)題如“字符串分割如何實(shí)現(xiàn)?”
我想把字符串按兩個(gè)漢字分割,如“字符,符串,串分,分割,割如,如何,何實(shí),實(shí)現(xiàn)”
那ASP代碼如何寫(xiě)?
非常感謝。

復(fù)制代碼 代碼如下:

dim i, title
title = objrs("Title")
for i = 0 to len(Title") step 2
    response.write mid(title, i, 2) & ","
next

復(fù)制代碼 代碼如下:

<%
dim objRs,strSql
Set objRs=Server.CreateObject("ADODB.RecordSet")
strSql="select Title,Content from Table"
objRs.Open strSql,strConn,1,3
if objRs.Eof then
  response.write "<center>沒(méi)有此數(shù)據(jù)</center>"
else
%>

<%
dim i, title
title = objrs("Title")
for i = 1 to len(Title")-2
    response.write mid(title, i, 2) & ","  '這里只是個(gè)示范輸出,你要自己把他賦值到META變量啊 汗
next
%>

加在META前面

相關(guān)文章

最新評(píng)論