我需要在我的 meteor.js 应用程序中处理一些 POST 数据,有没有一种简单的方法可以做到这一点?
非常基本,如果它是一个 PHP 应用程序,我只需要 $_POST 变量。
最佳答案
meteor 路由器
https://github.com/tmeasday/meteor-router#server-side-routing
Meteor.Router.add('/items/:id', 'POST', function(id) {
// update Item Function
return [200, 'ok'];
});
关于javascript - 在 meteor.js 中处理发布数据的简单方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14683787/