What is the best way to test for an empty string with jquery-out-of-the-box, i.e. without plugins? I tried this.
But it did't work at least out-of-the-box. It would be nice to use something that's builtin.
I wouldn't like to repeat
if (a == null || a=='')
everywhere if some if (isempty(a))
would be available.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…