<%str="aaaa.bbb.bbb.gif" str=left(str,InStrRev(str,".")-1)response.write str%> 转载于:https://www.cnblogs.com/moretop/archive/2011/03/05/1971343.html