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. | 方法和詳細(xì) |
|---|---|
| 1 |
Meteor.wrapAsync(function)
用于包裝異步代碼并將其轉(zhuǎn)換成同步。
|
| 2 |
Meteor.absoluteUrl([path], [options])
用于生成絕對URL指向的應(yīng)用程序。
|
| 3 |
Meteor.settings
用于設(shè)置部署配置。
|
| 4 |
Meteor.publish(name, function)
用于發(fā)布記錄客戶端。
|