On the problem of variable assignment svg

I have a d3.js and do some operations through var svg = d3.selectall () xxxxx; then this.svg = svg finds that there are not many methods in svg in this.svg, but if there are these methods in this.svg after this.svg.__proto__ = svg.__proto__, I want to know why I can"t assign values directly. Thank you

Aug.06,2021

should you new the object you created first?


prototype chain learn about

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-1b368ab-405ac.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-1b368ab-405ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?