Search
Write a publication
Pull to refresh
3
0
Василий @gbazil

Разработчик

Send message
А так сработоет:

в модуле

module.exports = function() { return «I have not a name»; }
module.exports.abc = ['a', 'b', '!'];

далее в другом файле

var f = require('./module.js');

var str = f();
str += f.abc[2];

console.log(str); // печатает: I have not a name!

Что мне и было нужно.

Рад, что у Вас не возникает таких заморочек )

Information

Rating
Does not participate
Location
Москва, Москва и Московская обл., Россия
Registered
Activity