
ASP限制内容字数代码怎么写啊
response.write"document.write('<SPAN>"&rs("Views")&"</SPAN><ahref=http://www.cjnet.co...
response.write "document.write ('<SPAN>"& rs("Views") &"</SPAN><a href= http://www.cjnet.com.cn/tours/" & rs("id") & ".html target=""_blank"">"& rs("Title") &"</a>');"我想限制title的字数显示个数要怎么写啊<%=left(rs("title"),20)%>怎么修改上面的代码
展开
2013-12-29
展开全部
<%
Type_1=rs("title")
If Len(Type_1)>15 Then Type_1=Left(Type_1,14) %>
<%=Type_1%>
Type_1=rs("title")
If Len(Type_1)>15 Then Type_1=Left(Type_1,14) %>
<%=Type_1%>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-12-29
展开全部
response.write "document.write ('<SPAN>"& rs("Views") &"</SPAN><a href= http://www.cjnet.com.cn/tours/" & rs("id") & ".html target=""_blank"">"& left(rs("title"),20) &"</a>');"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |