0
我正在使用Meteor-Dragula。让我们说,我拖动一个容器的字符串hello
到#right
DOM元素。我如何访问该字符串?说,把它推入一个字符串数组。如何使用Meteor-Dragula将容器的内容推送到数组中?
也许我在正确的轨道上这样的事情?
x = [];
Template.dragulaTemplate.events({
"drop #right1": function(el) {
x.push(el);
}
});