 
                        代码如下
export default {
  name: 'testView',
  mounted() {
    $( "#sortable" ).sortable({
      update() {
                // 此处调用组件的数据或方法
                console.log(this);
            },
        });
    $( "#sortable" ).disableSelection();
  },
};但是如果我需要在sortable的update事件中进行组件数据的修改或者调用组件的方法应该怎么做呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
晕…解决了…先const定义一个变量等于this,update里面调用就好了…