Creating a canvas element and setting its width and height attributes using jQuery

后端 未结 6 1759
天涯浪人
天涯浪人 2020-12-16 09:55

I was just trying to do the following in jQuery:

var newCanvas = $(\'\',{\'width\':100,\'height\':200,\'class\':\'radHuh\'});
$(body).append(n         


        
6条回答
  •  悲哀的现实
    2020-12-16 10:22

    You can use like this

    $('',{'class':'radHuh','Width':100,'Height':200});
    

    Change the case and try

提交回复
热议问题