谁能帮我看一下这段函数哪里出问题了吗?

paradjanov 2004-12-30 11:45:20
<%Function Strleft(Str,L)
Temp_Str=Len(Str)
For I=1 To Temp_Str
If Asc((Mid(Str,I,1)))>0 Then
lens=lens+1
Else
lens=lens+2
End If
If lens>=L Then Exit For
Next
if lens<L then
response.write left(Str,L)
else
response.write left(Str,lens)&"..."
end if
End Function%>

<%
Strleft(google中国google中国google中国google中国google中国google中国google中国,15)
%>
...全文
53 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
8988 2004-12-30
  • 打赏
  • 举报
回复
Strleft(google中国google中国google中国google中国google中国google中国google中国,15)
错了,应写成:

Strleft "google中国google中国google中国google中国google中国google中国google中国",15


28,404

社区成员

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

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