首页 > 代码库 > HierarchyRequestError:Node cannot be inserted at the specified point in the hierarchy

HierarchyRequestError:Node cannot be inserted at the specified point in the hierarchy

问题描述:

用jquery的ajax加载html片段,出现该错误

HierarchyRequestError:Node cannot be inserted at the specified point in the hierarchy

 

解决:

未指定加载数据返回类型,即dataType,注意不是datatypedataType:‘html‘

 

ok!

HierarchyRequestError:Node cannot be inserted at the specified point in the hierarchy