<img src="" alt="1223" src="hha"/>
<img src=".."/>
Assume that there are many img tags with a structure similar to the above, but the number of attributes of each img tag is unknown (that is, some may only have one src attribute). How to obtain all attribute names of each img tag? (not an attribute value)?
https://developer.mozilla.org...
Use ES6 object unwinding: