@aacassandra/client-xlsx2json 中文文档教程

发布于 5年前 浏览 22 项目主页 更新于 3年前

@aacassandra/client-xlsx2json

首先,非常感谢 xlsx.js,这个插件可以很容易地将 xlsx 文件转换为 json 对象

Install

npm i @aacassandra/client-xlsx2json

对于 vue 项目,不要忘记将下面的内容添加到 babel.config.js 文件中

module.exports = {
  ...,
  sourceType: 'unambiguous'
};

Usage

import xlsx2json from '@aacassandra/client-xlsx2json'

const examples = async (e) => {
  var files = e.target.files, f = files[0];
  let converting = await xlsx2json(files)
  console.log(converting)
}

LICENSE

MIT License

Copyright (c) 2019 Alauddin Afif Cassandra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

阅读更多关于 许可证

@aacassandra/client-xlsx2json

First of all, Thank you so much for xlsx.js, this plugin make to easy for converting xlsx file to json object

Install

npm i @aacassandra/client-xlsx2json

For vue project don't forget to add below to babel.config.js file

module.exports = {
  ...,
  sourceType: 'unambiguous'
};

Usage

import xlsx2json from '@aacassandra/client-xlsx2json'

const examples = async (e) => {
  var files = e.target.files, f = files[0];
  let converting = await xlsx2json(files)
  console.log(converting)
}

LICENSE

MIT License

Copyright (c) 2019 Alauddin Afif Cassandra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

read more about LICENSE

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文