1、错误描述
在ie浏览器上:
uncaught hierarchyrequesterror:failed to excute 'appendchild' on 'node':the new child element contains the parent.
在谷歌浏览器上:
script5022:dom exception:hierarchy_request_err(3) error
2、错误原因
在append()中包含append()
如:
append(append(string));
3、解决办法
去掉append中的append,将里面的append中的字符串放到外面的append里