我目前正在实现一个菜单编辑器。我有一个问题,第一级元素是完全可拖动的,第二级和第三级只返回关于 splice 或 eval 不是函数的错误。 拖动有效,但插入失败。
"Error: scope.$eval(...).splice is not a function"
最佳答案
现在有一个解决方案,可以在插入发生时添加自己的行为,从而增加灵 active :
From 1.4.0 you can now return true in dnd-drop to tell the directive that you will take care of the insertion yourself.
有关详细信息,请参阅 GitHub issue
关于javascript - Angular 拖放 : Splice not a function on three level,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35630364/