jQuery dynamic canvas creation, $ctx.getContext is not a function

前端 未结 3 1229
终归单人心
终归单人心 2020-12-23 21:14

When I try to execute this in jQuery I get $ctx.getContext is not a function in firebug.

var $ctx = $( \'\', {width:\'100\', hei         


        
3条回答
  •  感动是毒
    2020-12-23 21:32

    first thing first , you need to check out if the following line is exist and the top of HTML document.

    
    

    this line as a browser render policy excuted condition.

提交回复
热议问题