init vue
This commit is contained in:
@ -8,4 +8,17 @@
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
<script>
|
||||
function increment() {
|
||||
var amount = document.getElementById("amount");
|
||||
amount.value = parseInt(amount.value) + 1;
|
||||
}
|
||||
function decrement() {
|
||||
var amount = document.getElementById("amount");
|
||||
if (amount.value > 0) {
|
||||
amount.value = parseInt(amount.value) - 1;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user