Home > front end >  Brothers, canvas when chrome preview always read a property 'getContext of null how to solve
Brothers, canvas when chrome preview always read a property 'getContext of null how to solve

Time:09-23

Practice the canvas, in chrome preview shows always read a property 'getContext of null
'Draw the straight line segment does not display, look for a lot of methods, put the script & lt; Canvas & gt; The back, and & lt; body> The bottom is still not solve the problem, solving ~ ~

CodePudding user response:

Only add a bgcolor CSS styles

CodePudding user response:

Page, such as after completion of loading, and perform your js, put js there

The $(document). Ready (function () {

});

CodePudding user response:

It or not, at the same mistake, I use Windows onl oad

CodePudding user response:

Id="huabu
"
Acquisition is "huabu
"
What are their contrast differences!!!!!!!!!!!!!!!!!!!

CodePudding user response:

Id for more than a space behind

CodePudding user response:

reference 4 floor jio can reply:
id="huabu
"
Acquisition is "huabu
"
What are their contrast differences!!!!!!!!!!!!!!!!!!!
my my, too stupid,

CodePudding user response:

refer to fifth floor of the sky wave response:
id for more than a space behind
problem is indeed a space more, thanks to the