首页
(current)
分类
标签
排行榜
搜索
注册
登录
小鹤
sails.js 官方文档帮助手册教程
sails.js 官方文档帮助手册教程
语言:中文 | 章节:222 | 阅读:38867 | 收藏:0 | 评论:0
sails.js 官方文档帮助手册教程
sails
阅读
收藏
打赏
分享
举报
目录
评论
关于sails.js
Sails.js 官方文档(中英合辑)
Sails.js Documentation > Core Concepts
资源(Assets)
默认任务(Default Tasks)
禁用 Grunt(Disabling Grunt)
任务自动化(Task Automation)
设置(Configuration)
使用 .sailsrc 文档(Using .sailsrc Files)
自定义回应(Custom Responses)
部署(Deployment)
常见问题(FAQ)
托管(Hosting)
扩充(Scaling)
文档上传(File Uploads)
全局变数(Globals)
国际化(Internationalization)
日志(Logging)
sails.log()
关联(Associations)
多对多(Many-to-Many)
单向关联(One Way Association)
一对多(One-to-Many)
一对一(One-to-One)
穿透关联(Through Associations)
直接存取连接资料表(Direct Access to Join Tables)
生命周期回呼(Lifecycle callbacks)
Models
Waterline: SQL/noSQL Data Mapper (ORM/ODM)
Waterline Query Language
Validations
模型设置(Model Settings)
Policies
Custom Routes
Routes
URL Slugs
Enabling CORS
CSRF
Clickjacking
Content Security Policy
DDOS
P3P
Security
Socket Hijacking
HTTP Strict Transport Security
XSS
Services
Testing your code
Upgrading
Layouts
Locals
Partials
View Engines
Views
Adapters
List of Available Adapters
Custom Adapters
Generators
Custom Generators
List of Available Adapters
Hooks
Understanding Hooks
List of Available Hooks
Extending Sails
Node.js 新手?
Sails是什么?
入门教程
Sails.js Documentation > API Reference
sails-docs-reference
Add to Collection
Create a Record
Destroy a Record
Find Records
Find One
Populate Where…
Remove from Collection
Update a Record
Blueprint API
Command Line Interface (CLI)
sails console
sails debug
sails generate
sails lift
sails new
sails version
req.accepted
req.acceptedCharsets
req.acceptedLanguages
req.accepts()
req.acceptsCharset()
req.acceptsLanguage()
req.allParams()
req.body
req.cookies
req.file()
req.fresh
req.get()
req.host
req.ip
req.ips
req.is()
req.isSocket
Request (req)
req.method
req.param()
req.params
req.path
req.protocol
req.query
req.secure
req.signedCookies
req.socket
req.subdomains
req.url
req.wantsJSON
req.xhr
res.attachment()
res.badRequest()
res.clearCookie()
res.cookie()
res.forbidden()
res.get()
res.json()
res.jsonp()
res.location()
Response (res)
res.negotiate()
res.notFound()
res.ok()
res.redirect()
res.send()
res.serverError()
res.set()
res.status()
res.type()
res.view()
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.local
sails.config.log
Configuration (sails.config)
sails.config.models
sails.config.policies
sails.config.routes
sails.config.session
sails.config.sockets
sails.config.views
.count( [criteria, ] callback )
.create( values, [callback] )
.destroy( criteria , [callback] )
.find(criteria , [callback])
.findOne( criteria , [callback] )
.findOrCreate( criteria , record , [callback] )
Working with Models
.native()
.query()
.stream( criteria )
.update()
* .add( primary key )
Populated Values
*.remove( primary key )
.exec(callback)
.limit(integer)
.populate( foreignKey, [query] )
.populateAll( [query] )
Working with Queries
.skip(integer)
.sort(string)
.where(criteria)
Records
* .save(callback)
.toJSON()
.toObject()
* .validate(callback)
Waterline (ORM)
.message( models,data, [request] )
.publishAdd( {id},attribute, idAdded, [request], [options] )
.publishCreate( data,[request] )
.publishDestroy( {id}, [request], [options] )
.publishRemove( {id},attribute, idRemoved, [request], [options] )
.publishUpdate( {id},[changes],[request],[options] )
Resourceful PubSub
.subscribe(request,records,[contexts])
.unsubscribe(request,records,[contexts])
.unwatch(request)
.watch(request)
io.socket.on()
Socket Client (sails.io.js)
socket.delete()
socket.get()
socket.post()
socket.put()
io.socket.request()
sails.sockets.blast()
sails.sockets.broadcast( roomName, [event], data, [socketToOmit] )
sails.sockets.emit( socketIds, [event], data)
sails.sockets.id()
sails.sockets.join()
sails.sockets.leave( socket, roomName )
Sockets (sails.sockets)
sails.sockets.rooms()
sails.sockets.socketRooms( socket )
sails.sockets.subscribeToFirehose()
sails.sockets.subscribers()
sails.sockets.unsubscribeFromFirehose()
WebSockets
Contributing
Deployment
Nodejitsu
Openshift
Document Stubb
Sails.js User Guides
善良比聪明更重要(评论内容审核后才会显示)
分享,让知识传承更久远
×
文档下载
×
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档