没有使用if 为什么还会出现以下错误?ailed to execute insertBefore on Node The node before which the new node is to be inserted is not a child of this node
这个错误可能是由于插入节点的父节点与当前节点不匹配导致的。即使您没有使用if语句,这个错误仍然可能发生。可能需要检查您的代码,确保在插入节点之前,您已经正确地指定了父节点。
原文地址: http://www.cveoy.top/t/topic/bAqQ 著作权归作者所有。请勿转载和采集!