function strLength(str)
ON ERROR RESUME NEXT
dim WINNT_CHINESE
WINNT_CHINESE = (len("论坛")=2)
if WINNT_CHINESE then
dim l,t,c
dim i
l=len(str)
t=l
for i=1 to l
c=asc(mid(str,i,1))
if c<0 then c=c+65536
if c>255 then
t=t+1
end if
next
strLength=t
else
strLength=len(str)
end if
if err.number<>0 then err.clear
end function
function strlen(str)
dim p_len,xx
p_len=0
strlen=0
if trim(str)<>"" then
p_len=len(trim(str))
for xx=1 to p_len
if asc(mid(str,xx,1))<0 then
strlen=int(strlen) + 2
else
strlen=int(strlen) + 1
end if
next
end if
end function
function cutstr(str,lennum)
dim p_num
dim i,x
if strlen(str)<=lennum then
cutstr=str
else
p_num=0
x=0
do while not p_num > lennum-2
x=x+1
if asc(mid(str,x,1))<0 then
p_num=int(p_num) + 2
else
p_num=int(p_num) + 1
end if
cutstr=left(trim(str),x)&"..."
loop
end if
end function
function InsertZero(M)
if len(M)=1 then
InsertZero="0"&M
else
InsertZero=M
end if
end function
boss直聘如何将头像恢复成默认-boss直聘怎么把头像改回默认
迅雷怎样投屏到电视-迅雷视频投屏电视的播放方法
如何用visual-studio使命代码实现网页整体布局-visual-studio使命代码实现网页整体布局的方法
顺丰快递在线物流如何查询-顺丰快递官方单号查询入口在哪里
彩虹浏览器APP如何开启开发者工具-彩虹浏览器开发者工具开启方法
E听说中学在线学习平台入口在哪里-E听说中学直接访问入口是什么