Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

xlsx js

<script src="https://unpkg.com/xlsx/dist/xlsx.full.min.js"></script>
// Read XLSX file
$(function () {
  $('#file').on('change', function (e) {
    const file = e.target.files[0];
    const reader = new FileReader();

    reader.onload = function (e) {
      var data = e.target.result;
      var workbook = XLSX.read(data, {
        type: 'binary'
      });
      var first_sheet_name = workbook.SheetNames[0];
      var worksheet = workbook.Sheets[first_sheet_name];
      var result = XLSX.utils.sheet_to_json(worksheet);
      console.log(result);
    };

    reader.readAsBinaryString(file);
  });
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: sequelize max 
Javascript :: search string for character javascript 
Javascript :: jquery get position of element 
Javascript :: remove specific item from array 
Javascript :: regular expression in elastic 
Javascript :: adding a timer in a quiz game 
Javascript :: javascript child element selector 
Javascript :: latitude longitude to km javascript 
Javascript :: You must provide either mongoUrl|clientPromise|client in options 
Javascript :: async arrow function in javascript 
Javascript :: google analyics send event 
Javascript :: async wait for axios reactjs 
Javascript :: how to get parameter from url in react js 
Javascript :: javascript insert div into another div 
Javascript :: lodash clonedeep 
Javascript :: how to check if array 
Javascript :: dynamic copyright year javascript 
Javascript :: file_get_contents in javascript 
Javascript :: string remove last two characters javascript 
Javascript :: js .substring 
Javascript :: cancel or abort axios request 
Javascript :: redux update item in array 
Javascript :: json deep dot 
Javascript :: link tag react 
Javascript :: mongoose connection in express 
Javascript :: how to find unique values in an array in js using function 
Javascript :: how to get current formatted date dd/mm/yyyy in javascript 
Javascript :: javascript remove scientific notation 
Javascript :: Disable/remove pagination from react material-table 
Javascript :: convert nuber into string react js 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =