帆软的js会与服务器进行交互,造成批量取值.批量赋值效率低.

突然发现,帆软的js会与服务器进行交互,造成批量取值.批量赋值效率低.

本地环境测试速度很好.但是互联网环境,就会慢吞吞.大约每次触发都要一两秒.
有大神有好办法么?
  1. var a = contentPane.curLGP.getCellValue("D5");
  2. var b = contentPane.curLGP.getCellValue("E5");
  3. var c = contentPane.curLGP.getCellValue("F5");
  4. var d = contentPane.curLGP.getCellValue("G5");
  5. var e = contentPane.curLGP.getCellValue("H5");
  6. var f = contentPane.curLGP.getCellValue("I5");
  7. var g = contentPane.curLGP.getCellValue("J5");
  8. var h = contentPane.curLGP.getCellValue("K5");
  9. var i = contentPane.curLGP.getCellValue("L5");
  10. var j = contentPane.curLGP.getCellValue("M5");
  11. var k = contentPane.curLGP.getCellValue("N5");
  12. var l = contentPane.curLGP.getCellValue("O5");


  13. contentPane.setCellValue(0, col, row, a);
  14. contentPane.setCellValue(0, col + 1, row, b);
  15. contentPane.setCellValue(0, col + 2, row, c);
  16. contentPane.setCellValue(0, col + 3, row, d);
  17. contentPane.setCellValue(0, col + 4, row, e);
  18. contentPane.setCellValue(0, col + 5, row, f);
  19. contentPane.setCellValue(0, col + 6, row, g);
  20. contentPane.setCellValue(0, col + 7, row, h);
  21. contentPane.setCellValue(0, col + 8, row, i);
  22. contentPane.setCellValue(0, col + 9, row, j);
  23. contentPane.setCellValue(0, col + 10, row, k);
  24. contentPane.setCellValue(0, col + 11, row, l);
复制代码



FineReportflyingsnake 发布于 2018-3-14 16:55
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共6回答
最佳回答
0
macro_hard发布于2018-3-14 16:55(编辑于 2023-9-6 09:34)
555
最佳回答
0
flyingsnake发布于2018-3-14 17:09(编辑于 2023-9-6 09:34)
555
最佳回答
0
flyingsnake发布于2018-3-14 17:10(编辑于 2023-9-6 09:34)
555
  • macro_hard macro_hard 你自己又引入了jquery?
    回复
    2018-03-14 17:12 
  • flyingsnake flyingsnake(提问者) 回复 macro_hard :没有.只写了一个编辑结束
    回复
    2018-03-14 17:15 
  • macro_hard macro_hard 回复 flyingsnake :语句里面加debugger,然后开F12
    回复
    2018-03-14 17:24 
  • 0关注人数
  • 363浏览人数
  • 最后回答于:2018-3-14 17:24
    活动推荐 更多
    热门课程 更多
    返回顶部