怎样判断一个jquery对象是否为空jquery对象

if ( $('#myDiv').length ){}
http://stackoverflow.com/questions/47...

也能够直接判断$('#myDiv')[0]===undefined,若是true的话说明没有。

jQuery方法能够搞定,$.isEmptyObjec({})...

使用.get(0)方法:
if ($j('.cscsc').get(0) == undefined)