M
M
maestro072018-02-22 07:51:58
JavaScript
maestro07, 2018-02-22 07:51:58

How to display data in Datatable?

How to display only part of a list of emails in a table? And add all emails to excel downloads?
And is it possible to work with the list so that it is not in a row and without ' , '
5a8e4c5f072e3376145832.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVAS, 2018-02-22
@EVAS

var arr = '[email protected],[email protected],[email protected],[email protected]';
  arr = arr.split(','); //приобразуем в массив 
  console.log(arr) // вывод массива емейлов :)


  //что было не в ряд
  for (var i = 0; i < arr.length; i++) {
   			console.log(arr[i]);
    }

As for excel, most likely you will have to somehow save it in CSV format and then import it into excel from this format.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question