We know that jquery is used. lazyload needs to put the image path in data-original, so my website has been established for several months. it seems very troublesome to modify one article at a time. Is there any way to directly modify the img tag of the website? For example, using jquer... we know that to use jquery. lazyload, we need to put the image path in data-original.
My website has been established for several months. it seems quite troublesome to modify one article at a time.
Is there any way to directly modify the img tag of the website? For example, jquery
Hope you can solve this problem
Reply content:
We know that to use jquery. lazyload, we need to put the image path in data-original.
My website has been established for several months. it seems quite troublesome to modify one article at a time.
Is there any way to directly modify the img tag of the website? For example, jquery
Hope you can solve this problem
Let imgs = $ ("img"); imgs. each (function () {let src = $ (this ). attr ('src'); $ (this ). attr ('data-original', src );})