function createCellPos( n ){
var ordA = 'A'.charCodeAt(0);
var ordZ = 'Z'.charCodeAt(0);
var len = ordZ - ordA + 1;
var s = "";
while( n >= 0 ) {

s = String.fromCharCode(n % len + ordA) + s;

n = Math.floor(n / len) - 1;

}
return s;
}

createCellPos(26)//"AA"

原文:https://blog.csdn.net/weixin_42349358/article/details/80517198 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-02-08
  • 2021-09-17
  • 2021-09-16
  • 2022-02-06
  • 2021-04-28
猜你喜欢
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-11-20
  • 2021-09-19
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案