通过给元素定义ref属性来进行选择操作
<view class=“formaddUser u-flex” @click=“addphone()” ref=‘addphonenone’>
addphone(){
console.log(this.
r
e
f
s
.
a
d
d
p
h
o
n
e
n
o
n
e
)
t
h
i
s
.
refs.addphonenone) this.
refs.addphonenone)this.refs.addphonenone.KaTeX parse error: Expected 'EOF', got '}' at position 28: …play='none' }̲ 通过this.refs.属性.$el.style.样式=’’