hello.
There is only one picture in the {{图片}} field .
I want to set the “ID” element for the picture in the field.
I tried many methods from the internet and myself, but they all failed.
Until a method: I slice the html information of the {{图片}} field.
Get n letters, and remove the < img src= " at the beginning and the " > at the end.
As shown in the following figure.
var image = document.createElement(“img”)
image.src=a3
// Can set the id element
I think my method is not simple.
If there is a more convenient html operation, can you express it?
I can teach myself this method.
o(∩_∩)o