zoukankan      html  css  js  c++  java
  • 我的随笔2

    beforeRouteEnter(to, from, next) {
        next((vm) => {
          vm.set_title("xxxxx");
        });
      },
      beforeRouteLeave(to, from, next) {
        this.set_title("xxxxx");
        next();
      },
    mounted() {
        this.routed();
      },
     
     
     
     
     
    // 打电话
        telPhone(value) {
          location.href = "tel:" + value;
        },
     
    //时间格式兼容 安卓和苹果端 
    具体表现:字符串转时间,如果出现'-',ios不能识别,例如 Date.parse('2019-9-4 11:17:21')--在ios中会报错
    解决方法:把'-'转成'/',
    date.replace(/-/g,'/');

     
    this.$nextTick(() => {
            this.scrollTop = val;
            this.$forceUpdate();
          }); 

    that.$forceUpdate();
    个人建议用下面这一个
  • 相关阅读:
    数据库是什么以及用来干嘛
    10.3
    10.2
    12.7
    12.5
    12.4
    12.3
    12.2
    12.1JOptionPane
    11.30eclipse常用快捷键
  • 原文地址:https://www.cnblogs.com/dreammiao/p/15475909.html
Copyright © 2011-2022 走看看