首页 > 其他 > 详细

为什么#ID选择器使用的,视图模式检测OK,但IE11却没什么响应?

时间:2018-07-21 18:19:45      阅读:196      评论:0      收藏:0      [点我收藏+]

<script type="text/javascript" src="../scripts/jquery-3.3.1.min.js"></script>
<script>
 $(document).ready(function(){
  $("input[type=‘button‘]").click(function(){
   var inputValue = $("#testInput").val();
   alert(inputValue);
  });
  
 });
</script>
<!-- 为什么上面的代码,实时视图下ok,但在IE11中却不能呢? -->

</head>
<body>
 <input type="text" id="testInput" name="test" value="" />
    <input type="button" value="输入的值为:"/>
  
</body>

为什么#ID选择器使用的,视图模式检测OK,但IE11却没什么响应?

原文:https://www.cnblogs.com/huo-fenghuang/p/9347502.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!