js中的contains方法

contains方法用来判断dom中的包含关系

它以HTMLElement为参数,且返回布尔值

posted @ 2021-10-09 11:01  冰镇汽水  阅读(848)  评论(0编辑  收藏  举报