Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/405.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript html绑定器事务中图像src的Base64字符串失败_Javascript_Jquery_Html_Jquery Mobile_Cordova - Fatal编程技术网

Javascript html绑定器事务中图像src的Base64字符串失败

Javascript html绑定器事务中图像src的Base64字符串失败,javascript,jquery,html,jquery-mobile,cordova,Javascript,Jquery,Html,Jquery Mobile,Cordova,我在firebase中以base64字符串的形式存储了一个图像。后来,我尝试检索字符串并使用jquery mobile在弹出窗口中显示图像。我越来越坚强了!!!活页夹事务失败分配时出错 img_id.src = "data:image/jpeg;base64," + base64_string; 而不是img_id.src= 假设img_id是img标记id的字符串表示形式: $("#" + img_id).attr('src', "data:image/jpeg;base64," + ba

我在firebase中以base64字符串的形式存储了一个图像。后来,我尝试检索字符串并使用jquery mobile在弹出窗口中显示图像。我越来越坚强了!!!活页夹事务失败分配时出错

img_id.src = "data:image/jpeg;base64," + base64_string;

而不是img_id.src=

假设img_id是img标记id的字符串表示形式:

$("#" + img_id).attr('src',  "data:image/jpeg;base64," + base64_string ); 

也许你可以制作一把小提琴来重现这个问题?我也有同样的问题。在chrome中工作,在IE中中断。我相信这与分配给src属性的字符串的大小有关。运气好吗?我没有在弹出窗口中显示图像,而是重定向到新页面并尝试在新页面中显示图像。而且效果很好。