0
は、私はいくつかのHTMLを挿入するには、この機能を取得しようとしていますが、私はエラーを取得する私はJavaScriptこのエラーはなぜ発生しますか?ここで
document.getElementById('testButton').onclick = function(){
var tableResult = makeHTMLMatchesTable(fetchMatches());
var matches = document.getElementById('matches')
matches.parentNode.insertBefore(matches, tableResult);
}
です:NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
私は本当にこのエラーを理解していない、私は別のを入れて試してみましたそれでもそれは子供について不平を言っています。何か案は?
素敵な1、5分で受け付けます!ありがとう –