The easiest way to get hairspray off of glasses is to run them under warm water and wipe with a coffee filter. The coffee filter will absorb the liquid and claen the glasses without leaving lint behind.
Hairspray can permanently damage some coatings on lenses (specifically a/r coating), as can some cleaners, even those marketed for cleaning eyeglasses. If you wash your lenses with soap and water and the spots remain, the coating may have been eaten off. Take you glasses off and put them under a towel while you use hairspray