// 方法一 if (! $('#keks').html()) { //sharejs.com 什么都没有找到; } // 方法二 if ($('#keks').is(":empty")) { // http://www.sharejs.com 什么都没有找到; }