删除多余代码

This commit is contained in:
袁帅
2022-08-16 11:15:07 +08:00
parent fa0b627f41
commit bd95759a81

View File

@ -29,10 +29,6 @@
//post>= 4 * 320(x轴像素) * 240(y轴像素) 表示读取图像数据完毕
if (pos >= 4 * 320 * 240) {
window.parent.postMessage({"image":image.join('|')}, '*');
// var url ='http://127.0.0.1:8081/outer/v1.0/stock/logicStock/rgbArray2Base64';
// $.post(url, {type: 'pixel', rgb: image.join('|')}, function(result){
// $('#base64image').attr('src', 'data:image/jpg;base64,' + result.data);
// });
image = new Array();
pos = 0;
}
@ -59,7 +55,6 @@
});
function receiveMessageFromParent ( event ) {
console.log(event.data);
$('#base64image').attr('src', 'data:image/jpg;base64,' + event.data.data);
};