이런 식으로 apnagent
tutorial 그리고 두 번째 줄에 값을 설정하는 'piping'의 목적이 무엇인지 이해가되지 않습니다.JavaScript로 파이핑하는 목적은 무엇입니까?
module.exports = "<a1b56d2c 08f621d8 7060da2b c3887246 f17bb200 89a9d44b fb91c7d0 97416b30>";
왜 module.exports
이 필요합니까 덮어 쓸 수 : module.exports = agent;
요구,이 같은 라인이되는 튜토리얼 이전의 경우 왜
var apnagent = require('apnagent')
, agent = module.exports = new apnagent.Agent(); // <--- WHY this here
은 특히 이해가 안 돼요?
'agent = new apnagent.Agent();의 약어입니다. module.exports = agent;'. – connexo
module.exports를 덮어 써야하는 이유는 무엇입니까? –
@ János 다른 파일에 있습니다. –