parent
5a27defe03
commit
a9f47fb606
1 changed files with 23 additions and 0 deletions
@ -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…
Reference in new issue