if ($('#someDiv').length) {  // http://www.sharejs.com 告诉你它的确存在 }