SOURCE

console 命令行工具 X clear

                    
>
console
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>title</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
    <meta name="renderer" content="webkit">
    <style>
      * {
        margin: 0;
        padding: 0;
        list-style: none;
      }
      body {
        font-size: 14px;
        font-family: -apple-system, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Arial, sans-serif;
        color: #27282b;
        background: #fff;
      }
      a {
        text-decoration: none;
        color: #27282b;
      }
      *,
      *::before,
      *::after {
        outline: none;
        box-sizing: border-box;
      }
      html,
      body {
        height: 100%;
      }
      .d1,
      .d2{
        width: 50%;
        height: 100px;
        background: #eee;
        user-select: none;
        position: relative;
        margin: 0 auto 50px auto;
      }
      
    </style>
  </head>

  <body>
    <div class="wrapper" id="app">
      <div class="d1" @click="func1">d1</div>
      <div class="d2" @click="func2">d2</div>
    </div>

    <script src="https://lib.baomitu.com/vue/2.6.10/vue.min.js"></script>
    <script src="https://app.vizo.top/js/utils.js"></script>
    <script>
      let vio = VIZO_UTILS
      let vm = new Vue({
        el: '#app',
        data() {
          return {
            msg: 'd1',
          }
        },
        methods: {
          func1() {
            let now = Date.now()
            JSData.set('k1', now, (v) => {
                console.log('k1 保存成功')
              }
            );
          },
          
          func2() {
            JSData.get('k1', (v) => {
                alert(v.data)
              }
            );
          }
        },
      })
    </script>
  </body>
</html>