主页
JS 参考手册
HTML DOM contains() 方法
tryjsref_node_contains
运行 ❯
×
更改方向
保存代码
更改主题
我是 div 中的一个 p 元素,我内部有一个
span
元素。
点击按钮查看div元素是否包含span元素。
试一试