扫码关注官方订阅号
写了个p代码,发现只能执行一次,搜网页,发现可以多次执行,到底要怎么才能多次执行,按钮状态可以多次,但是p不行
认证高级PHP讲师
$("#btn").mouseenter(function(e){ var w=Math.floor(Math.random()*document.documentElement.clientWidth);
var h=Math.floor(Math.random()*document.documentElement.clientHeight); $("p").animate({ "width":"100px", "top":h, "left":w },2000); });
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
$("#btn").mouseenter(function(e){
var w=Math.floor(Math.random()*document.documentElement.clientWidth);