Why does the drawImage of canvas always say that the img parameter I gave is of the wrong type?

  var img = document.getElementById("testimg")
  console.log("img", img)
  console.log("typeimg", typeof (img))
  context.drawImage(img, 0, 0, 750, 1334)

so how exactly do you need to pass it on?

Jan.17,2022

found a problem. It is a referencing problem of static resources. no, no, no.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d244-2c378.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d244-2c378.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?