index.html 1.0 KB
Newer Older
6
UPDATE  
64104061f23fda247c679fa8 已提交
1 2 3 4 5 6 7
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="style.css" rel="stylesheet" type="text/css" />
6
622eda98dfef6c4fdb84ccca 已提交
8
    <title>InsCode新手教程</title>
6
UPDATE  
64104061f23fda247c679fa8 已提交
9 10
</head>
<body>
6
622eda98dfef6c4fdb84ccca 已提交
11 12
    <video width="100%" height="100%" src="https://file.iviewui.com/inscode/InsCode.mp4" autoplay controls>
    </video>
6
UPDATE  
64104061f23fda247c679fa8 已提交
13
</body>
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
</html>
<template>
  <div>
    <input type="text" v-model="textInput" @input="updateInput">
    <span>{{ textHint }}</span>
  </div>
</template>

<script>
export default {
  data() {
    return {
      textInput: '',
      textHint: ''
    }
  },
  methods: {
    updateInput(event) {
      // 更新文本框的值
      this.textInput = event.target.value
      // 根据文本框的值更新提示信息
      this.updateHint()
    },
    updateHint() {
      // 根据文本框的值计算提示信息
      this.textHint = '您输入了 ' + this.textInput.length + ' 个字符'
    }
  }
}
</script>