Jquery - 用特殊的 ui 效果替换所有 show() 和 hide() (不是硬编码)
我只在我的网站上使用 hide() 和 show() 方法。 但有些用户想要更多的效果。就像 jquery UI(弹跳、剪辑、滑动) 一样。
是否可以替换(不是硬编码)所有 hide() & show() 方法具有(例如)“反弹”效果?
让用户可以决定自己想要哪种效果?
提前致谢!
彼得
i only use the hide() and the show() method on my website.
But some user want more effect's. Like the jquery UI (bounce, clip, slide).
Is it possible to replace (not hardcoded) all hide() & show() methods with the (for example) "bounce" effect?
So that the user can decide wich effect he want?
Thanks in advance!
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hide() 的方法签名如下所示
因此您唯一要做的就是更改特定用户的效果变量。
IE
User1
效果 = 反弹;
User2
effect = drop;
The Method Signature for hide() looks like this
So the only thing you have to do is to change the effect variable for the specific user.
i.e.
User1
effect = bounce;
User2
effect = drop;