Setting the src attribute of an IFrame to data:application/pdf;base64?

后端 未结 3 677
不思量自难忘°
不思量自难忘° 2021-01-25 03:38

Setting the src attribute of an IFrame to data:application/pdf;base64, isn\'t working for me, any ideas why?

Here\'s the .aspx markup

<%@ Page Languag         


        
3条回答
  •  我在风中等你
    2021-01-25 03:49

    this way worked for me :

    var oldsrc = $('.content-control-iframe').attr('src');
    var newsrc = $('.content-control-iframe').attr('src').slice(8);
    $('.content-control-iframe[src="'+oldsrc+'"]').attr('src', newsrc);
    

提交回复
热议问题