私はその理由を理解しようとしています
$('#title').replaceWith('ha');
外で働くでしょう
drop: function(event, ui) {}
jquery のドロップ可能なスクリプトの領域ですが、内部では機能しません。具体的には、
$(".droppable").droppable({
drop: function(event, ui) {
$('#title').replaceWith('ha');
}
を取得しRuntime Error (line 1102) data(...).options is null or not an object
ます。$('#title').append('ha');
また、drop: の中にa を挿入すると、機能します。しかし、私$('#title').replaceWith('ha');
が外のどこかに置くと
$(".droppable").droppable({ /* */ });
できます?