Name of object designer



  • Good time of the day, question exclusively for the purposes of learning:

    var DomAPICanvas = document.createElement("canvas");
    var jQueryCanvas = $("<canvas>");
    

    console.log(DomAPICanvas.constructor); // HTMLElementCanvas function
    console.log(jQueryCanvas.constructor); // JQuery function

    In fact, I understand why. jQueryCanvas.constructor I'm interested in the following: Is it possible to get a real design? And if so, how?



  • The designer &apos; s real value can be obtained only with access to the original circumference/element. (sighs) $("<canvas>")[0] )

    So the code would look like:

    var DomAPICanvas = document.createElement("canvas");
    var jQueryCanvas = $("<canvas>");
    

    console.log(DomAPICanvas.constructor); // HTMLElementCanvas function
    console.log(jQueryCanvas[0].constructor); // HTMLElementCanvas function




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2