if (Meteor.isClient) { // Code running on client... } if (Meteor.isServer) { // Code running on server... }
if (Meteor.isCordova) { // Code running on Cordova... }
Meteor.startup(function () { // Code running after platform is ready... });
S.No. | 方法和详细 |
---|---|
1 | Meteor.wrapAsync(function)服务器
用于包装异步代码并将其转换成同步。
|
2 | Meteor.absoluteUrl([path], [options])异步
用于生成绝对URL指向的应用程序。
|
3 | Meteor.settings学习
用于设置部署配置。
|
4 | Meteor.publish(name, function)spa
用于发布记录客户端。
|