私はこのJavaScriptを持っています:
$('.foto').filter(function(index) {
return index == Math.floor(Math.random() * 8) + 1;
}).trigger('mouseover');
写真にホバー効果をシミュレートしたいのですが、どういうわけかフィルター機能が機能しません。私も試しました
$('.foto:random').trigger('mouseover');
私はこのJavaScriptを持っています:
$('.foto').filter(function(index) {
return index == Math.floor(Math.random() * 8) + 1;
}).trigger('mouseover');
写真にホバー効果をシミュレートしたいのですが、どういうわけかフィルター機能が機能しません。私も試しました
$('.foto:random').trigger('mouseover');