Math.random能返回0~1之间的数
function shuffle()
{
return Math.random()>0.5 ? -1 : 1
}
翻牌功能的实现
function selectCard() {
var $fcard=$(".card-flipped");
翻了两张牌后退出翻牌
if($fcard.length>1)
{
return;
}
$(this).addClass("card-flipped");
项目进度
最新推荐文章于 2023-05-01 21:21:49 发布