我无法从显示的图像地址获取exif数据
点击照片,你会看到exif数据。
var someCallback = function(e) {
$('#cameraModel').val(e.Model);
$('#aperture').val(e.FNumber);
$('#created').val(e.DateTime);
$('#taken').val(e.DateTimeOriginal);
$('#copyright').val(e.Copyright);
$('#description').val(e.ImageDescription);
$('#artist').val(e.Artist);
$('#latitude').val(e.GPSLatitude[2]);
$('#longitude').val(e.GPSLongitude[2]);
//Uncomment the line below to examine the
//EXIF object in console to read other values
//console.log(e);
}
$('#fdd').on('click', function (e) {
alert($(this).attr("src"));
$(this).fileExif(someCallback);
});请帮帮我..。小提琴
发布于 2014-02-23 16:40:45
从小提琴开始,您正在尝试使用来自https://github.com/sanisoft/jQuery-fileExif的https://github.com/sanisoft/jQuery-fileExif方法。您在这里有几个问题:
Uncaught TypeError: Object [object Object] has no method 'fileExif'的消息意味着您丢失了代码或尝试了对错误对象的调用)document.write(
"<script type='text/vbscript'>\r\n"
+ "Function IEBinary_getByteAt(strBinary, iOffset)\r\n"
+ " IEBinary_getByteAt = AscB(MidB(strBinary,iOffset+1,1))\r\n"
+ "End Function\r\n"
+ "Function IEBinary_getLength(strBinary)\r\n"
+ " IEBinary_getLength = LenB(strBinary)\r\n"
+ "End Function\r\n"
+ "</script>\r\n"
);https://stackoverflow.com/questions/21970588
复制相似问题