Home >Backend Development >PHP Tutorial > jquery 或者php怎么检测dom元素有无闭合

jquery 或者php怎么检测dom元素有无闭合

WBOY
WBOYOriginal
2016-06-13 12:42:08726browse

jquery 或者php如何检测dom元素有无闭合
比如我的dom较为复杂


  //这个div没有闭合

8种超级抗压食品,吃掉压力!



 



 


众所周知,过大的压力会破坏我们的饮食习惯,2112132123



 


请问 php或者jquery如何能查出这样没有闭合的html元素,并补上这个闭合元素



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn