Code Monkey home page Code Monkey logo

bubble-make's Introduction

bubble-make

实现一个泡泡发生器的效果,点击鼠标,产生泡泡,泡泡在画面中随意漂浮,达到生命极限即可自动消失

构造函数方式定义bubble对象,其中包括bubble的属性和绘制方法

requsetAnimationFrame实现动画效果
同时,cancelAnimationFrame停止执行的动画

###聊天室功能集中到该动画项目中

###mongoose集中到该动画项目中

###mongodb document struture: field-and-value paris 键值对的形式存储数据 { field1: value1, field2: value2, ... filedN: valueN }
BSON data types

###mongodb CURD操作 db.collection.find()
eg: db.users.find({age: {$gt:18}}, {name: 1, address: 1}).limit(5)
在users中查找age大于18的数据,并且返回的数据为小于等于5条的{_id: 'x', name: 'x', address: 'x'};

insert, update, delete

db.collection.insertOne()
db.collection.insertMany()
db.collection.insert()

db.collection.updateOne( //limit 1 {age: {$lt: 18}}, //update filter {$set: {status: 'reject'}} //update action )

db.collection.updateMany( //no limit {age: {$lt: 18}}, //update filter {$set: {status: 'reject'}} //update action )

db.collection.replaceOne( {name: 'sue'}, //replace filter {name: 'amy', age: 25, status: 'enrolled'} //replacement document )

db.collection.deleteOne({status: 'rejected'}); //limit 1
db.collection.deleteMany({status: 'rejected'}); //no limit
db.collection.remove({status: 'D'});

bubble-make's People

Contributors

shinyting avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.