脚本 :
function initializeSort() {
jQuery('#apps').sortable().bind('sortupdate', function () {
// Save order in extension when apps are moved
var children = document.getElementById("#apps").innerHTML;
console.log(children);
chrome.runtime.sendMessage({
type: "updateApps",
data: children
});
});
}
このエラーが発生します。
Uncaught TypeError: Cannot read property 'innerHTML' of null
私が考えることができる唯一のことは、要素で使用するまでは正常に動作するため、.sortable()
ここから使用しているコードhttp://farhadi.ir/projects/html5sortable/と関係があるということです。.sortable()