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
用於發佈記錄客戶端。
|