标签:method 学习 element NPU turn mod cto pre methods
<div id="app"> <el-input v-model="input1" placeholder="请输入内容"></el-input> <el-button type="primary" @click="getInputValue">点击</el-button> </div> var Main = { data() { return { input1: ‘‘, } }, methods:{ getInputValue(){ alert(this.input1) }, } } var Ctor = Vue.extend(Main) new Ctor().$mount(‘#app‘)
标签:method 学习 element NPU turn mod cto pre methods
原文地址:https://www.cnblogs.com/xsmile/p/10415966.html