[英]Jquery nestedSortable: Uncaught TypeError: Cannot read property 'match' of undefined
This is the fiddle: https://jsfiddle.net/107bx70o/3/ 这是小提琴: https : //jsfiddle.net/107bx70o/3/
var ns = $('ol.sortable').nestedSortable({
forcePlaceholderSize: true,
handle: 'div',
helper: 'clone',
items: 'li',
opacity: .6,
placeholder: 'placeholder',
revert: 250,
tabSize: 25,
tolerance: 'pointer',
toleranceElement: '> div',
maxLevels: 3,
isTree: true,
expandOnHover: 700,
startCollapsed: false,
change: function() {
console.log('change');
},
sort: function() {
console.log('sort');
},
relocate: function() {
console.log('relocate');
}
});
$('#toArray').click(function(e) {
arraied = $('ol.sortable').nestedSortable('toArray', {startDepthCount: 0});
})
When the button is clicked, you get the error. 单击该按钮时,您会收到错误消息。
I did try also last version on github: https://github.com/ilikenwf/nestedSortable 我确实在github上尝试了最后一个版本: https : //github.com/ilikenwf/nestedSortable
But error is the same. 但是错误是一样的。 My code is exactly as the Fiddle.
我的代码与小提琴完全相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.