canvas getContext(“2d”) returns null

前端 未结 5 2245
天命终不由人
天命终不由人 2020-12-05 17:53

I\'ve tried this a few different ways, but I keep getting stuck with the same error. I\'ve loaded an image to canvas before, but since I updated Safari a few days ago, I\'m

5条回答
  •  一个人的身影
    2020-12-05 18:24

    Just put your JavaScript at the end of the page it will ... put an end to your problems... i tried everything but this the most logical and simple solution.. as that JS will run only after the other part(ie the upper page) has loaded.. hope this help

提交回复
热议问题