This commit is contained in:
2020-08-07 07:27:09 +08:00
parent 113faa50ce
commit 0fd1912998
21 changed files with 578 additions and 56 deletions

View File

@@ -129,4 +129,18 @@ MyUtl.hidePhone = function(phone)
end
end
MyUtl.Images = {
[".JPG"] = true,
[".JPEG"] = true,
[".PNG"] = true,
[".PDF"] = true,
[".BMP"] = true,
[".GIF"] = true,
}
---public 是图片
MyUtl.isImage = function(path)
local extension = Path.GetExtension(path)
return MyUtl.Images[string.upper(extension)] or false
end
return MyUtl