Sails.js 官方文档
Introduction
1.
Concepts
1.1.
Assets
1.1.1.
Default Tasks
1.1.2.
Disabling Grunt
1.1.3.
Task Automation
1.2.
Configuration
1.2.1.
Localjsfile
1.2.2.
Usingsailsrcfiles
1.3.
Controllers
1.3.1.
Generating Controllers
1.3.2.
Routing To Controllers
1.4.
Custom Responses
1.4.1.
Adding Custom Response
1.4.2.
Default Responses
1.5.
Deployment
1.5.1.
FAQ
1.5.2.
Hosting
1.5.3.
Scaling
1.6.
File Uploads
1.6.1.
Uploading To Amazon S 3
1.6.2.
Uploading To Mongo Gridfs
1.7.
Globals
1.7.1.
Disabling Globals
1.8.
Internationalization
1.8.1.
Locales
1.8.2.
Translating Dynamic Content
1.9.
Logging
1.9.1.
sails.log
1.10.
Middleware
1.10.1.
Conventional Defaults
1.11.
ORM
1.11.1.
Associations
1.11.1.1.
Dominance
1.11.1.2.
Manyto Many
1.11.1.3.
One Way Association
1.11.1.4.
Oneto Many
1.11.1.5.
Oneto One
1.11.1.6.
Through Associations
1.11.1.6.1.
Attributes
1.11.1.6.2.
Lifecyclecallbacks
1.11.1.6.3.
Models
1.11.1.6.4.
Querylanguage
1.11.1.6.5.
Validations
1.11.1.6.6.
Model Settings
1.12.
Policies
1.12.1.
Sails And Passport
1.13.
Routes
1.13.1.
Route Target Syntax
1.13.2.
URL Slugs
1.14.
Security
1.14.1.
CORS
1.14.2.
CSRF
1.14.3.
Clickjacking
1.14.4.
Content Security Policy
1.14.5.
DDOS
1.14.6.
P 3 P
1.14.7.
Socket Hijacking
1.14.8.
Strict Transport Security
1.14.9.
XSS
1.15.
Services
1.15.1.
Creating A Service
1.16.
Sessions
1.17.
Testing
1.17.1.
Code Coverage
1.18.
Upgrading
1.18.1.
To0.10
1.18.2.
To0.11
1.19.
Views
1.19.1.
Layouts
1.19.2.
Locals
1.19.3.
Partials
1.19.4.
View Engines
1.20.
Extending Sails
1.20.1.
Adapters
1.20.1.1.
Adapter List
1.20.1.2.
Custom Adapters
1.20.2.
Generators
1.20.2.1.
Custom Generators
1.20.2.2.
Generator List
1.20.3.
Hooks
1.20.3.1.
Hookspec
1.20.3.1.1.
Configure
1.20.3.1.2.
Defaults
1.20.3.1.3.
Initialize
1.20.3.1.4.
Routes
1.20.3.1.4.1.
Installablehooks
1.20.3.1.4.2.
Projecthooks
1.20.3.1.4.3.
Usinghooks
2.
Getting Started
2.1.
New To Node
2.2.
What Is Sails
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
Powered by
GitBook
Sails.js 官方文档
Document Stubb
This is a stub!
Here is some information
Contributed By
Name
Bio
Link
Organization
Etc...