> npm config set script-shell "C:\Program Files\git\bin\bash.exe"; ./test.sh; npm config delete script-shell
npm ERR! `./test.sh;` is not a valid npm option eval "find . -type f $(printf "! -path '%s' " "${ignoreList[@]/[,#]/}") -print"./loop-files.sh: eval: line 13: unexpected EOF while looking for matching `"' // ★ устанавливаю значение
var my_cookie = "haloooooooooooooooooo";
cosnt conf = {
id: 7777777,
clickmap: true,
params: {
// ★ как передать значение сюда?
its_my_cookie: ?????????????????,
}
};
(function(d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter7777777 = new Ya.Metrika2(conf);
} catch (e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function() { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/tag.js";
})(document, window, "yandex_metrika_callbacks2");
А так можно было что-ли?
Это работает как обычная функция, только вместо новой строки или точки с запятой обычная запятая? - а последние значение как я понял возвращается.