javascript - How to implement random jumps to multiple domain names?
迷茫
迷茫 2017-06-12 09:20:52
0
2
1063

1. How to implement random jumps to multiple domain names? Can the same link point to a random domain name?
2. For example, link a jumps to link b this time. Next time, it may be link c. The jump link is random. How to implement this in the code?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
我想大声告诉你

Is this okay?

location.href = Math.random() < 0.5 ? "http://www.foo.com" : "http://www.bar.com";
代言
loaction.href = 'xxx.com/xxx'+Math.random();

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template