京能电厂排名:这段asp程序是什么意思?
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/07 04:57:07
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
tempstr截取tempwid长度吧