当前位置 : 主页 > 网络编程 > JavaScript >

安卓机型input

来源:互联网 收集:自由互联 发布时间:2021-06-30
gistfile1.txt mounted() { window.addEventListener('resize', this.handler) }, methods: { handler(){ this.xx = document.body.clientHeight console.log(this.xx) if (/Android/gi.test(navigator.userAgent)) { this.showFooter = !this.showFooter } }
gistfile1.txt
mounted() {
      window.addEventListener('resize', this.handler)
    },
    methods: {
      handler(){
        this.xx = document.body.clientHeight
        console.log(this.xx)
        if (/Android/gi.test(navigator.userAgent)) {
            this.showFooter = !this.showFooter
        } 
      },
网友评论