HTML Canvas drawImage() method works for URLs but not local files?

后端 未结 0 1690
迷失自我
迷失自我 2020-11-30 02:08

The following code outputs the correct image:

    var canvas = document.getElementById(\'myCanvas\');
    var context = canvas.getContext(\'2d\');
    var ima         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题