mounted: function() {
Sortable.mount(new MultiDrag(), new Swap());
var _this = this;
var $ss = document.getElementById('sort')
new Sortable($ss, {
group: 'shared',
multiDrag: true,
multiDragKey :'ctrl',
selectedClass: "selected",
animation: 150,
onEnd:function(event){ }
}
}
上面是我的代码 ,
当我首次打开画面后,我不可以直接只用‘ctrl'多选
只有当我在vscode上面更改代码后 保存、 更新画面 才可以使用。
这并不是我想要的效果,我想要它随时可以ctrl 多选,而不是手动保存代码更新画面才行。
拜托了,希望自己可以得到您的回复。
English please
emm..i am so sorry.. i found the ' multiDragKey :'ctrl',' is not useful,When I open the screen for the first time(just Compiled), I can’t use ‘ctrl’ to select, but if use vscode to compile and update the code online, the ctrl attribute can be used on the web page。What should i pay attention to,Is the way I use it wrong?Why is it sometimes easy to use but not easy to use? I don't want to manually save the code to update the screen.Please forgive me who is not good at English.Looking forward to your reply.
@kaermomo I'm not sure why. Maybe after the code compiles you need to refresh and clear cache.
Try doing this: https://stackoverflow.com/a/7000899/6088312
Most helpful comment
English please