摘要: 支付宝 JS 框架 base.js 实现是这样的: 这算是“史上最全”的方式,它确实使用了最主流的方法,只是把他们都写一起了而已。 用 instanceof 和 constructor 是最直接的、简单的方式: 只是,由于在不同 iframe 中创建的 Array 并不共享 prototype。如果 阅读全文
posted @ 2016-08-20 22:14 御清绝 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 看了些资料,对应只需要知道怎么查询和使用mongodb的我来说,这些足够啦。 左边是mongodb查询语句,右边是sql语句。对照着用,挺方便。 db.users.find() select * from users db.users.find({"age" : 27}) select * from 阅读全文
posted @ 2016-08-20 22:05 御清绝 阅读(556) 评论(0) 推荐(0) 编辑