如何在页面刷新时随机化元素?

时间:2021-06-15 21:11:48

Does anyone have any ideas about how I could go about randomising an list each time the page is refreshed?

有没有人对每次刷新页面时如何随机化列表有任何想法?

A jQuery solution would be perfect as I'm already using it.

一个jQuery解决方案将是完美的,因为我已经在使用它。

Any advice appreciated!

任何建议赞赏!

1 个解决方案

#1


5  

You could take a look at this Shuffle plugin

你可以看看这个Shuffle插件

$('ul').shuffle();

#1


5  

You could take a look at this Shuffle plugin

你可以看看这个Shuffle插件

$('ul').shuffle();