0
當我從錨標記調用它的工作;圖片未加載jQuery的移動圖像彈出
var surl = "http://192.168.1.233";
$("#imgLink").html("<a href='"+ surl + "/leave/" + filename + "'>" + filename + "</a>");
但是,當我從jQuery Mobile的圖像彈出式調用,它不工作了;
$("#imgLink").html("<a href='#popupPhoto' data-rel='popup' data-position-to='window' data-role='button' data-inline='true' data-transition='fade'>"+
filename + "</a>"+
"<div data-role='popup' id='popupPhoto' data-overlay-theme='a' data-theme='d' data-corners='false'>"+
"<a href='#' data-rel='back' data-role='button' data-theme='a' data-icon='delete' data-iconpos='notext' class='ui-btn-right'>Close</a>"+
"<img class='popphoto' src='"+ surl + "/leave/" + filename +"' style='width:150px; height:150px;'></div>");
我可以看到彈出框但不是圖像,而是顯示問號。