标签:获取dom节点 cli OLE led 添加 click win console htm
HTML在任意节点上添加属性“ref”
<span ref="span_01">span_01</span>
<button @click="consoleDOM()">consoleDOM</button>
SCRIPT vue里通过 this.$refs.xxx 获取
consoleDOM() {
window.console.log(this.$refs.span_01)
}
标签:获取dom节点 cli OLE led 添加 click win console htm
原文地址:https://www.cnblogs.com/mahoshojo/p/12238301.html