js文件

var myfunction = {

 Confirm: function (ConfirmList) {
    console.log('123' + ConfirmList)
  },
 
}
export default myfunction

 

vue文件

<template>
 
</template>

<script>

  import Manager from "@/assets/js/test.js";

  export default {
 
      data() {
      return {   
        confirmList: [],
      
      };
    },
    methods: {
    
      //确认
      confirm() {   
        var ConfirmList = ["1","2"];       
       Manager.Confirm(ConfirmList)
      },
    } ,
   
  }  ;
</script>

<style scoped>

</style>

 

Logo

前往低代码交流专区

更多推荐