Common image formats:
// determines whether the image format --img open label
function isImage (STR) {
var REG = /\.(png|jpg|gif|jpeg|webp)$/;
return reg.test (STR);
}
Common image formats:
// determines whether the image format --img open label
function isImage (STR) {
var REG = /\.(png|jpg|gif|jpeg|webp)$/;
return reg.test (STR);
}