v-html引起xss攻击的处理方法 1.隐藏eslint检测:在元素上方写注释/eslint-disabled/,表示不检测这里。或者在eslintrc.js文件里写入’vue/no-v-html’:0。 2.网上目前大量存在的改写指令v-html的方法。