键盘事件学习暂存

mac_study
roger 2 years ago
parent 5a27defe03
commit a9f47fb606
  1. 23
      07_事件处理/3.键盘事件.html

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>键盘事件</title>
<script type="text/javascript" src="../vue.js"></script>
</head>
<body>
<div id="root">
<h1>你好 {{name}}</h1>
<input type="text" placeholder="你动我试试">
</div>
<script type="text/javascript">
new Vue({
el: '#root',
data: {
name: "haha!"
}
})
</script>
</body>
</html>
Loading…
Cancel
Save