在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
asp中怎么替换最后一个逗号为空字符串 <% str="aaa,bbb,ccc,eee," if right(str,1)="," then str=left(str,len(str)-1) end if %> asp Right 函数 可从字符串右边返回指定数目的字符。 dim txttxt="This is a beautiful day!" response.write(Right(txt,11)) 输出:utiful day! 实例 2 dim txttxt="This is a beautiful day!" response.write(Right(txt,100)) 输出:This is a beautiful day! 实例 3 dim txt,xtxt="This is a beautiful day!"x=Len(txt) response.write(Right(txt,x)) 输出:This is a beautiful day! |
请发表评论