用vue实现点击显示或影藏
1、<button @click.stop=“ShowHidden = !ShowHidden”>显示或隐藏 2、data中定义ShowHiddendata () {return {ShowHidden: false}},3、mounted中写上下方代码,点击页面事件mounted () {document.addEventListener(‘click’, ...