Экспорт массива Javascript

В библиотеке POCO есть класс DateTimeParser, который может помочь вам в этом. http://www.appinf.com/docs/poco/Poco.DateTimeParser.html

0
задан adiga 27 February 2019 в 17:13
поделиться

1 ответ

Нашел ответ:

var PDF = [].map.call(document.querySelectorAll('a[target="_blank"]'), function(el) {
  PDFString = el.pathname.substring(24) +' ' + el.innerHTML;
  return PDFString;
}).join();

var hiddenElement = document.createElement('a');
hiddenElement.href = 'data:attachment/text,' + encodeURI(PDF);
hiddenElement.target = '_blank';
hiddenElement.download = 'PDFName.txt';
hiddenElement.click();

Это скачает мне местоположение плюс название PDF.

0
ответ дан Robert Alexandru 27 February 2019 в 17:13
поделиться
Другие вопросы по тегам:

Похожие вопросы: