📜  更改 html div jquery - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:26.336000             🧑  作者: Mango

代码示例3
//Takes input from entire page and uses it to change the HTML of h1
$(document).keypress(function(event){
  $("h1").text(event.key);
});