无标题文章.md

# 参考(Reference)

## 1. 应用(Application)

* 事件(Events)

* 生命周期(Lifecycle)

* sails.getRouteFor()

* sails.getUrlFor()

* sails.lift()

* sails.load()

* sails.log()

* sails.lower()

* sails.request()

* sails.getBaseUrl()

## 2. 蓝图API

* 添加(add to)

* 新增(create)

* 删除(destory)

* 单条查询(find one)

* 条件查询(find where)

* 联合查询(populate where)

* 移除(remove from)

* 更新(update)

## 3. 命令行接口

* sails console

* sails debug

* sails generate

* sails new

* sails version

## 4. 配置

* sails.config.*

* sails.config.blueprints

* sails.config.bootstrap()

* sails.config.connections

* sails.config.cors

* sails.config.csrf

* sails.config.globals

* sails.config.http

* sails.config.i18n

* sails.config.log

* sails.config.models

* sails.config.policies

* sails.config.routes

* sails.config.session

* sails.config.sockets

* sails.config.views

## 5. 请求('req')

* req.accepted

* req.acceptedCharsets

* req.acceptedLanguages

* req.body

* req.cookies

* req.fresh

* req.headers

* req.host

* req.ip

* req.ips

* req.isSocket

* req.method

* req.options

* 1. req.options.values

* 2. req.options.where

* req.params

* req.path

* req.protocol

* req.query

* req.secure

* req.signedCookies

* req.socket

* req.subdomains

* req.url

* req.wantsJSON

* req.xhr

* req.accepts()

* req.acceptsCharset()

* req.acceptsLanguage()

* req.allParams()

* req.file()

* req.get()

* req.is()

* req.param()

## 6. 响应('res')

* res.attachment()

* res.badRequest()

* res.clearCookie()

* res.cookie()

* res.created()

* res.forbidden()

* res.get()

* res.json()

* res.jsonp()

* res.location()

* res.negotiate()

* res.notFound()

* res.ok()

* res.redirect()

* res.send()

* res.serverError()

* res.set()

* res.status()

* res.type()

* res.view()

## 7. Waterline('ORM')

* Models.count()

* 1. .create()

* 2. .destroy()

* 3. .find()

* 4. .findOne()

* 5. .findOrCreate()

* 6. .native()

* 7. .query()

* 8. .stream()

* 9. .update()

* Populated Values

* 1. .add()

* 2. .remove()

* Queries

* 1. .exec()

* 2. .limit()

* 3. .populate()

* 4. .skip()

* 5. .sort()

* 6. .where()

* Records

* 1. .save()

* 2. .toJSON()

* 3. .toObject()

## 8. WebSockets

* Resourceful PubSub

1. .message()

2. .publishAdd()

3. .publishCreate()

4. .publishDestroy()

5. .publishRemove()

6. .publishUpdate()

7. .subscribe()

8. .unsubscribe()

9. .unwatch()

10. .watch()

11. .subscribers()

* sails.sockets

1. .addRoomMembersToRooms()

2. .blast()

3. .broadcast()

4. .getId()

5. .join()

6. .leave()

7. .leaveAll()

8. .removeRoomMembersFromRooms()

9. sails.sockets.emit()

10. sails.sockets.id()

11. sails.sockets.rooms()

12. sails.sockets.socketRooms()

13. sails.sockets.subscribers()

* Socket Client

1. io.sails

2. io.socket

3. SailsSocket

* Methods

* Properties

4. io.socket.delete()

5. io.socket.get()

6. io.socket.off()

7. io.socket.on()

8. io.socket.post()

9. io.socket.put()

10. io.socket.request()

# 概念

* fd

- fdf

- fdfd

+ fdf

# 结构

你可能感兴趣的:(无标题文章.md)