Like most of the people has asked the similar question. But so far, I didn't found a solution yet.
var img = [
C:/a/b/1.png,
C:/a/b/2.png
];
$j.each(img, function(){
$j('#imagesList').append('<li><img src=file:///"' + this + '" /></li>');
});
first make array like this
var img = [
"C:/a/b/1.png",
"C:/a/b/2.png"
];
then
$j.each(img, function(i, val){
$j('#imagesList').append('<li><img src=file:///"' + val + '" /></li>');
});
Your browser security prevents loading images from local hard disks. A long time ago this was allowed, you could even load an image from something like D:/ and ope n the CD drive.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.