摘要: MongoDB的update问题(JAVA)——怎么一次更新所有的相同记录用如下这个函数:public WriteResult update(DBObject q, DBObject o, boolean upsert, boolean multi) throws MongoException官方API写的是:upsert - if the database should create the element if it does not existmulti - if the update should be applied to all objects matching首先我的collec 阅读全文
posted @ 2014-02-18 14:27 欢歌911 阅读(973) 评论(0) 推荐(0) 编辑
摘要: /** * 获取ie浏览器版本号 * @returns */function getInternetExplorerVersion(){ var version = -1; // Return value assumes failure. if (navigator.appName == 'Microsoft Internet Explorer'||navigator.appName=="Netscape") { var ua = navigator.userAgent.toLowerCase(); var strRegIE1 =... 阅读全文
posted @ 2014-02-18 14:25 欢歌911 阅读(268) 评论(0) 推荐(0) 编辑