<%
function conleft(content,i)
if len(content)>i then
content=left(content,i)
response.write (content&"...")
else
response.write (content)
end if
end function
%>
以上為函數(shù),下面就可以直接調(diào)用。
<%call conleft(rs("content"),10)%>
OK,相信以后遇到這些問題應(yīng)該是NO PROBLEM了。
這個(gè)主要是做成了函數(shù);