Creating a new Image this way

后端 未结 0 1334
长发绾君心
长发绾君心 2021-02-05 07:18

I came across this way of creating this \'Image\' element, and wanted to know the use cases of it, and how it works.

(new Image).src = "http://localhost:3000         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题