开发者

jQuery if not exist

This means "if exist"

if($.cookie("movies_list")) {开发者_JAVA技巧
// do something
}

How to write "if not exist" without changing the structure?


Prepend the not operator !

if(! $.cookie("movies_list")) {
// do something
}

! Operator

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜