1
のプロパティを読み取ることができません「とが一致する」これはフィドルです:https://jsfiddle.net/107bx70o/3/jQueryのnestedSortable:キャッチされない例外TypeError:未定義
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});
})
ボタンをクリックすると、あなたがエラーを取得します。 https://github.com/ilikenwf/nestedSortable
をしかし、エラーは同じです:
私はgithubの上でも、最後のバージョンを試してみました。私のコードはフィドルとまったく同じです。