Description
CDN Search
75CDN jsDelivr
<!DOCTYPE html>
<html>

<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta charset="utf-8" />
	<title>Online Run</title>

	<script src="https://code.bdstatic.com/npm/xlsx@0.16.6/dist/xlsx.full.min.js"></script>
</head>

<body>
	<input value="https://s1.zme.ink/2020/08/31/14301572e9.xlsx" placeholder="请输入 XLSX 链接地址" style="width:50%" />
	<input id='btnok' type='button' value="View JSON" />
</body>

</html>
document.getElementById('btnok').onclick = function () {
    
    var url = this.previousElementSibling.value;

    var req = new XMLHttpRequest();
    req.open("GET", url, true);
    req.responseType = "arraybuffer";

    req.onload = function (e) {
        var data = new Uint8Array(req.response);
        var workbook = XLSX.read(data, { type: "array" });

        console.log(workbook)

        var result = {};
        workbook.SheetNames.forEach(function (sheetName) {
            var roa = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], { header: 1 });
            if (roa.length) result[sheetName] = roa;
        });
        console.log(result)
    }

    req.send();
}