For example, if the menu is of ul li structure
means selected, is it faster to use php regular url to add active, or is it faster to use jq to traverse all li under ul? There are multiple uls , actually a level 3 menu
Reply content:
For example, the menu is of ul li structure
means selected. Is it faster to use php regular url to add active or jq to traverse all li under ul? There are multiple uls. , actually a level 3 menu
jq processing will be faster. If your menu is controlled by the background, you can judge the default selected status in the background.
Isn’t regular expression the least efficient?