摘要: console.log console.log console.table console.assert console.assert console.time & console.timeEnd console.time & console.timeEnd keys & values keys & 阅读全文
posted @ 2015-11-16 17:25 Ellen_Fu 阅读(222) 评论(0) 推荐(0) 编辑
摘要: <script id="DeptTemplate" type="text/x-jquery-tmpl"> <li> Title:${Name} {{each Emp}} <br />${$index+1}:${$value} {{/each}} </li> </script> <ul id="dep 阅读全文
posted @ 2014-09-22 13:43 Ellen_Fu 阅读(146) 评论(0) 推荐(0) 编辑
摘要: var link = document.createElement('link'); link.href = "http://udacity-crp.herokuapp.com/style.css?rtt=2"; link.rel = "stylesheet"; document.head.appe 阅读全文
posted @ 2014-09-22 11:44 Ellen_Fu 阅读(700) 评论(0) 推荐(0) 编辑
摘要: function test(){ alert("0" == false); alert($("#sortPublic").val() == "0"); alert(!($("#sortPublic").val())); alert(!false); alert(!"0"); } the result 阅读全文
posted @ 2014-05-09 14:40 Ellen_Fu 阅读(119) 评论(1) 推荐(0) 编辑
摘要: Comparison Query OperatorsName Description$gt Matches values that are greater than the value specified in the query.$gte Matches values that are equal... 阅读全文
posted @ 2014-04-21 14:30 Ellen_Fu 阅读(243) 评论(1) 推荐(0) 编辑
摘要: $in: { field: { $in: [, , ... ] } } db.inventory.find( { qty: { $in: [ 5, 15 ] } } )$or: { $or: [ { }, { }, ... , { } ] } db.inventory.find( { $or... 阅读全文
posted @ 2014-04-21 14:24 Ellen_Fu 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 尽可能把一次展示所需的必要数据都存储到一起,典型的空间换时间。现在的科技条件下空间的价格非常低廉,很划算。优点: 1. 在精心的设计下查询性能巨好。 2. 数据结构弹性十足,特别适合快速发展中的产品。注意:1、Mongodb不支持事务使用方法:http://www.cnblogs.com/xumin... 阅读全文
posted @ 2014-04-14 09:27 Ellen_Fu 阅读(142) 评论(1) 推荐(0) 编辑