首页 \ 问答 \ 什么时候应该使用static_cast,dynamic_cast,const_cast和reinterpret_cast?(When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?)

什么时候应该使用static_cast,dynamic_cast,const_cast和reinterpret_cast?(When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?)

什么是正确的用途:

  • static_cast
  • dynamic_cast
  • const_cast
  • reinterpret_cast
  • C型转换(type)value
  • 函数式转换type(value)

在哪个具体情况下,如何决定使用哪一种?


What are the proper uses of:

  • static_cast
  • dynamic_cast
  • const_cast
  • reinterpret_cast
  • C-style cast (type)value
  • Function-style cast type(value)

How does one decide which to use in which specific cases?


原文:https://stackoverflow.com/questions/332030
更新时间:2022-02-13 18:02

最满意答案

为了使.show()工作,你必须先隐藏按钮!

工作小提琴 (唯一的变化是.munchbutton现在display: none;默认情况下)

如果这不是你想要的,请告诉我。


In order for .show() to work, surely you must hide the buttons first!

Working fiddle (the only change is that .munchbutton is now display: none; by default)

Let me know if this is not what you were after.

相关问答

更多
  • 为了使.show()工作,你必须先隐藏按钮! 工作小提琴 (唯一的变化是.munchbutton现在display: none;默认情况下) 如果这不是你想要的,请告诉我。 In order for .show() to work, surely you must hide the buttons first! Working fiddle (the only change is that .munchbutton is now display: none; by default) Let me know ...
  • 这是@Charlietfl建议的解决方案: HTML
    .......
    JavaScript的 $(document).ready(function(){ $('.picture-div').mouseover(function(){ $('.menu').fad ...
  • https://jsfiddle.net/9Luvrvc1/1/ 您可以使用相同的代码,在计数器功能处使用减号: $(document).ready(function() { var count; var interval; $(".ca-top").on('mouseover', function() { var div = $('.navbar-nav.categories'); intervalDown = setInterval(funct ...
  • 这里是使用css的转换和box sadhow的基本示例。 您可以使用边距和过渡向上设置按钮的动画。 HTML CSS button { display: block; margin-top: 20px; height: 40px; width: 60px; color black; -webkit-transition: all 200ms linear; -moz-transition: all 200ms li ...
  • 我访问了你提到的网站。 参考该网站我已经采取了做这个动画的代码