asp 如何使字符串超过5个字符长度的部分改为...

2025-04-26 05:46:40
推荐回答(1个)
回答1:

if len(<%=rs("title")%>)>5 then
<%=left((rs("title"),5)&"..."%>
else
<%=rs("title")%>
end if