问题比较菜:关于取固定长度的...

wisdommeng 2004-08-27 04:06:20
读取新闻标题,只要显示前面的6个汉字,后面的用..代替,请问怎么实现?
...全文
117 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wisdommeng 2004-08-27
  • 打赏
  • 举报
回复
多谢大家!~
cpio 2004-08-27
  • 打赏
  • 举报
回复
if len(title)>8 then title=left(title,6) & "..."

不过这样英文会短很多

你最好进行控制一下
rehearts 2004-08-27
  • 打赏
  • 举报
回复
if len(title) > 6 then
title = left(title,6)&"..."
end if
baby21st 2004-08-27
  • 打赏
  • 举报
回复
if len(title) > 6 then
title = left(title,6)&"..."
end if
zhuomaocn 2004-08-27
  • 打赏
  • 举报
回复
http://community.csdn.net/Expert/topic/3306/3306774.xml?temp=.42651

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧