首页 > TAG信息列表 > modelModifiers

现在对了,是大写了

<!DOCTYPE html> <div id="v-model-example" class="demo"> <my-component v-model.capitalize="myText"></my-component> </div> <script src="https://unpkg.com/vue@next"><

v-model.title和v-model.capitalize有啥区别?

<!DOCTYPE html> <div id="v-model-example" class="demo"> <my-component v-model.title="bookTitle"></my-component> {{ bookTitle }} </div> <script src="https://unpkg.com/vue@next"

组件v-model的用法

<!DOCTYPE html> <div id="v-model-example" class="demo"> <my-component v-model.capitalize="myText"></my-component> {{ myText }} </div> <script src="https://unpkg.com/vue@next