There are many jquery selectors, and there are many ways to select a certain DOM. How to exclude a certain set of selected elements? Here are some examples:
1. Select all img elements, excluding the number of elements with class=phpernote:
Attached example: exclude specified elements in jQuery and select all remaining elements
Scenario: A certain page uses js delayed loading technology to process all images to improve user experience, but there are several images that do not want delayed loading and require them to be singled out.
I studied jQuery’s API documentation and figured it out. jQuery is really convenient. Post it here for backup: