LuvkySheet 根据返回的行和列求具体单元格位置
//单元格数字转字母cellPos (c, r, n) { let ordA = 'A'.charCodeAt(0); let ordZ = 'Z'.charCodeAt(0); let len = ordZ - ordA + 1; let s = ""; while (c >= 0) { s = String.fromCharCode(c % len + ordA) + s; c = Math.floor(c / len) - 1; } if (n) {
原创
2021-08-17 17:34:06 ·
413 阅读 ·
1 评论