在javascript中调用document.getElementById('elementId');如果那个元素不存在的话会返回null。而在jquery中调用$('#elementId');(其他的selector也一样)却无论那个元素存不存在都会返回一个jquery对象,所以不能在用null来判断了。根据jquery的文档判断存不存在方法为if($('#elementId').length)。
FF上一直装有Google笔记本的插件,一直没有到一面上去看,今天无意点到。发现多了个叫“Unfiled”的记事本,记得自己并未建过这么个东西,进去一看才发现,其实就是我的Google书签: 并且右下角也多了“Labels”,且与我Google书签中的相同。 其实人家的右上角的“ New features! ”里说得很清楚: Integration with Google Bookmarks Notebook is now integrated with Google Bookmarks. Your bookmarks will show up as a special Unfiled notebook, making Google Notebook a single place to collect and organize interesting web pages. To publish and collaborate, just drag and drop bookmarks into notebooks.
Comments