functionshowHint(str){  alert(str);  }           functionshowHint(str){  alert(str);  }           functionshowHint(str){  alert(str);  }        

首页 / 知识

html的标签中的this应该如何使用

2023-04-11 15:00:00

html的标签中的this应该如何使用
  <html>
 
  <
 
  head
 
  >
 
  <scripttype="text/
 
  javascript
 
  ">
 
  functionshowHint(str){
 
  alert(str);
 
  }
 
  </script>
 
  </head>
 
  <body>
 
  <inputtype="text"
 
  onkeyup
 
  ="showHint(this.value)"/><!--此处,在
 
  html标签
 
  中的this代表的是此标签-->
 
  </body>
 
  </html>

标签如何使用textJavaScriptfunctionshowHintHTML

最新内容

相关内容

热门文章

推荐文章

标签云

猜你喜欢