<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="../js/Vue.js" charset="utf-8"></script>
    <script type="text/javascript">
      window.onload = function(){
        var vm = new Vue({
          el:'#box',
          data:{},
          methods:{
            show:function(){
              alert(111)
            }
          }
        });
      }
    </script>
  </head>
  <body>
    <div id="box">
      <input type="button" name="" value="按钮" @click="show()">
    </div>
  </body>
</html>
Logo

前往低代码交流专区

更多推荐