Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

input中没有设定v-bind、v-model、ref属性,是怎么获取vue中input的数据?

<input autocomplete="off" spellcheck="false" type="text" placeholder="手机号" maxlength="11" class="ivu-input ivu-input-default ivu-input-with-prefix">
<input autocomplete="off" spellcheck="false" type="password" placeholder="密码" class="ivu-input ivu-input-default ivu-input-with-prefix">

这段代码中,手机号和密码的input没有v-bind、v-model、ref属性,在登录login是怎么获取input中的值和数据库中的值进行校验的?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

按class获取可以么, 或者按标签获取, 然后判断dom身上的属性进行获取


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...