What's the best way to store multiple values for jQuery's $.data()?

前端 未结 3 1121
南笙
南笙 2021-01-04 09:08

If storing multiple (10+) values on a large number of divs, is it more optimal to store them all in a single object, or as separate values?

Single Object:

3条回答
提交回复
热议问题