Introduction
1.
入门指南
1.1.
node.js 新手?
1.2.
sails是什么?
2.
核心概念
2.1.
附件
2.1.1.
默认任务
2.1.2.
禁用Grunt
2.1.3.
自动化任务
2.2.
设置
2.2.1.
Localjsfile
2.2.2.
Usingsailsrcfiles
2.3.
控制器
2.3.1.
Generating Controllers
2.3.2.
Routing To Controllers
2.4.
定制响应
2.4.1.
Adding Custom Response
2.4.2.
Default Responses
2.5.
部署
2.5.1.
FAQ
2.5.2.
Hosting
2.5.3.
Scaling
2.6.
文件上传
2.6.1.
Uploading To Amazon S 3
2.6.2.
Uploading To Mongo Gridfs
2.7.
全局变量
2.7.1.
Disabling Globals
2.8.
国际化
2.8.1.
Locales
2.8.2.
Translating Dynamic Content
2.9.
记录日志
2.9.1.
sails.log
2.10.
中间件
2.10.1.
Conventional Defaults
2.11.
ORM
2.11.1.
Associations
2.11.1.1.
Dominance
2.11.1.2.
Manyto Many
2.11.1.3.
One Way Association
2.11.1.4.
Oneto Many
2.11.1.5.
Oneto One
2.11.1.6.
Through Associations
2.11.1.6.1.
Attributes
2.11.1.6.2.
Lifecyclecallbacks
2.11.1.6.3.
Models
2.11.1.6.4.
Querylanguage
2.11.1.6.5.
Validations
2.11.1.6.6.
Model Settings
2.12.
Policies
2.12.1.
Sails And Passport
2.13.
Routes
2.13.1.
Route Target Syntax
2.13.2.
URL Slugs
2.14.
Security
2.14.1.
CORS
2.14.2.
CSRF
2.14.3.
Clickjacking
2.14.4.
Content Security Policy
2.14.5.
DDOS
2.14.6.
P 3 P
2.14.7.
Socket Hijacking
2.14.8.
Strict Transport Security
2.14.9.
XSS
2.15.
Services
2.15.1.
Creating A Service
2.16.
Sessions
2.17.
Testing
2.17.1.
Code Coverage
2.18.
Upgrading
2.18.1.
To0.10
2.18.2.
To0.11
2.19.
Views
2.19.1.
Layouts
2.19.2.
Locals
2.19.3.
Partials
2.19.4.
View Engines
2.20.
Extending Sails
2.20.1.
Adapters
2.20.1.1.
Adapter List
2.20.1.2.
Custom Adapters
2.20.2.
Generators
2.20.2.1.
Custom Generators
2.20.2.2.
Generator List
2.20.3.
Hooks
2.20.3.1.
Hookspec
2.20.3.1.1.
Configure
2.20.3.1.2.
Defaults
2.20.3.1.3.
Initialize
2.20.3.1.4.
Routes
2.20.3.1.4.1.
Installablehooks
2.20.3.1.4.2.
Projecthooks
2.20.3.1.4.3.
Usinghooks
3.
Reference
3.1.
Blueprint Api
3.1.1.
Add
3.1.2.
Create
3.1.3.
Destroy
3.1.4.
Find
3.1.5.
Find One
3.1.6.
Populate
3.1.7.
Remove
3.1.8.
Update
3.2.
Cli
3.2.1.
Sailsconsole
3.2.2.
Sailsdebug
3.2.3.
Sailsgenerate
3.2.4.
Sailslift
3.2.5.
Sailsnew
3.2.6.
Sailsversion
3.3.
Req
3.3.1.
req.accepted
3.3.2.
req.acceptedCharsets
3.3.3.
req.acceptedLanguages
3.3.4.
req.accepts
3.3.5.
req.acceptsCharset
3.3.6.
req.acceptsLanguage
3.3.7.
req.allParams
3.3.8.
req.body
3.3.9.
req.cookies
3.3.10.
req.file
3.3.11.
req.fresh
3.3.12.
req.get
3.3.13.
req.headers
3.3.14.
req.host
3.3.15.
req.ip
3.3.16.
req.ips
3.3.17.
req.is
3.3.18.
req.isSocket
3.3.19.
req.method
3.3.19.1.
req.options
3.3.19.2.
req.options.values
3.3.19.3.
req.options.where
3.3.20.
req.param
3.3.21.
req.params
3.3.22.
req.path
3.3.23.
req.protocol
3.3.24.
req.query
3.3.25.
req.secure
3.3.26.
req.signedCookies
3.3.27.
req.socket
3.3.28.
req.subdomains
3.3.29.
req.url
3.3.30.
req.wantsJSON
3.3.31.
req.xhr
3.4.
Res
3.4.1.
res.attachment
3.4.2.
res.badRequest
3.4.3.
res.clearCookie
3.4.4.
res.cookie
3.4.5.
res.forbidden
3.4.6.
res.get
3.4.7.
res.json
3.4.8.
res.jsonp
3.4.9.
res.location
3.4.10.
res.negotiate
3.4.11.
res.notFound
3.4.12.
res.ok
3.4.13.
res.redirect
3.4.14.
res.send
3.4.15.
res.serverError
3.4.16.
res.set
3.4.17.
res.status
3.4.18.
res.type
3.4.19.
res.view
3.5.
sails.config
3.5.1.
Miscellaneous
3.5.2.
sails.config.blueprints
3.5.3.
sails.config.bootstrap
3.5.4.
sails.config.connections
3.5.5.
sails.config.cors
3.5.6.
sails.config.csrf
3.5.7.
sails.config.globals
3.5.8.
sails.config.http
3.5.9.
sails.config.i18n
3.5.10.
sails.config.log
3.5.11.
sails.config.models
3.5.12.
sails.config.policies
3.5.13.
sails.config.routes
3.5.14.
sails.config.session
3.5.15.
sails.config.sockets
3.5.16.
sails.config.views
3.6.
Waterline
3.6.1.
Models
3.6.1.1.
Count
3.6.1.2.
Create
3.6.1.3.
Destroy
3.6.1.4.
Find
3.6.1.5.
Find One
3.6.1.6.
Find Or Create
3.6.1.7.
Native
3.6.1.8.
Query
3.6.1.9.
Stream
3.6.1.10.
Update
3.6.2.
Populated Values
3.6.2.1.
Add
3.6.2.2.
Remove
3.6.3.
Queries
3.6.3.1.
Exec
3.6.3.2.
Limit
3.6.3.3.
Populate
3.6.3.4.
Populate All
3.6.3.5.
Skip
3.6.3.6.
Sort
3.6.3.7.
Where
3.6.4.
Records
3.6.4.1.
Save
3.6.4.2.
To JSON
3.6.4.3.
To Object
3.6.4.4.
Validate
3.7.
Websockets
3.7.1.
Resourceful Pubsub
3.7.1.1.
Message
3.7.1.2.
Publish Add
3.7.1.3.
Publish Create
3.7.1.4.
Publish Destroy
3.7.1.5.
Publish Remove
3.7.1.6.
Publish Update
3.7.1.7.
Subscribe
3.7.1.8.
Subscribers
3.7.1.9.
Unsubscribe
3.7.1.10.
Unwatch
3.7.1.11.
Watch
3.7.2.
sails.io.js
3.7.2.1.
io.socket.on
3.7.2.2.
socket.delete
3.7.2.3.
socket.get
3.7.2.4.
socket.post
3.7.2.5.
socket.put
3.7.2.6.
socket.request
3.7.3.
sails.sockets
3.7.3.1.
sails.sockets.blast
3.7.3.2.
sails.sockets.broadcast
3.7.3.3.
sails.sockets.emit
3.7.3.4.
sails.sockets.id
3.7.3.5.
sails.sockets.join
3.7.3.6.
sails.sockets.leave
3.7.3.7.
sails.sockets.rooms
3.7.3.8.
sails.sockets.socketRooms
3.7.3.9.
sails.sockets.subscribers
4.
Userguides
4.1.
Contributing
4.1.1.
Deployment
4.1.2.
Nodejitsu
4.1.3.
Openshift
4.2.
Guide Stub
Published with GitBook
Sails.js 官方文档中文版 (v0.11.x)