怎么用js代码对网站做负载均衡? 20.08K views2018年8月15日Linux 0 fengwuhen11018 2018年8月15日 0 Comments 有没有js代码能做网站的负载均衡,就是不做任何判断,3个URL随机跳转其中1个。 itkylin Answered question 2018年8月15日 1 Answer ActiveVotedNewestOldest 0 itkylin224 Posted 2018年8月15日 0 Comments 代码: let urls=[”urlA”,”urlB”,”urlC”]; let num=Math.floor(Math.random()*3); window.location.href=urls[num]; PC端和手机端都适用。 itkylin Answered question 2018年8月15日 Register or Login 问题状态Active2018年8月15日Views20079 timesAnswers1 answer