an old project made by jsp a long time ago asked me to write a general method because I put all the pictures in a fixed place, and all the img
tags called that method and then loaded the images.
because I was relatively lame at that time, I found a strange way on the Internet:
https://whatwg-cn.github.io/h., the specification mentions that the src
attribute cannot execute the js script, and now I don"t have the latest code of that project, and I don"t know why the boss wrote this to solve the interface problem twice. Is it difficult to src= "getUrl (this)"
to prevent the execution of src
, so src
originally needed to remove the interface but was blocked?