Node.js
- 6 ответов
- 0 вопросов
6
Вклад в тег
const handler1 = require('./handler1');
const handler2 = require('./handler2');
app.get('/first', handler1.get.bind(handler1, {myParam: "Hello"}));
app.get('/second', handler2.get.bind(handler2, {myParam: "World"}));
exports.get = function(share, req, res, next) {
console.log(share.myParam);
}
pkill node
setInterval(one.move, 100)
setInterval(function(){ one.move(); }, 100)