<template>
  <view>
    <input type="text" v-model="inputValue"/>
    <button @click="handleClick">点击</button>
  </view>
</template>
<script>
export default {
  data() {
    return {
      inputValue: ''
    }
  },
  methods: {
    handleClick() {
      console.log(this.inputValue)
    }
  }
}
</script>
用uniapp框架文本框和按钮生成vue2格式template这种的代码无需任何文字说明只要源码即可

原文地址: https://www.cveoy.top/t/topic/bxn3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录