实例 Vue 如何使用 textarea

 
<template>
  <h1>Textarea</h1>
  <form @submit.prevent="registerAnswer">
    <label>
      <p>What do you think about our product?</p> 
      <textarea v-model="txtInp" placeholder="Write something.." rows="4" cols="35">

Submitted answer:

{{ inpValSubmitted }}

输出结果