<html>
<body>
<input type="text" id="idNum" placeholder="placeholder" value="">
<script type="text/javascript">
var o = document.getElementById("idNum");
with(o){
alert(value);
alert(placeholder);
}
</script>
</body>
</html>

PlaceHolder IE9不支持,IE11支持。

相关文章:

  • 2021-08-15
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-03-02
猜你喜欢
  • 2021-05-28
  • 2022-12-23
  • 2021-12-30
  • 2021-09-29
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案