ASP上传图片代码问题

来源:百度知道 编辑:UC知道 时间:2024/06/19 09:31:18
ExtName = "jpg,gif,png" '允许扩展名
SavePath = "upload" '保存路径
If Right(SavePath,1)<>"/" Then SavePath=SavePath&"/" CheckAndCreateFolder(SavePath)
前两行我明白,但是后两行是什么意思?

If Right(SavePath,1)<>"/" Then SavePath=SavePath&"/"
假如保存路径(savepath)最右边的一个字符不等于"/",则保存路径=SavePath加上/

CheckAndCreateFolder(SavePath)
检查并创建目录SavePath