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

<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>

步入代码的世界,改变自己,追求想要到达的地方!
原文地址:https://www.cnblogs.com/huo-fenghuang/p/9347502.html