$(function() { let $test1deepest = $("#test1").deepest(); $("#result1").html('最深层级节点 <b>#test1</b> DOM树是: <b>' + escape($test1deepest.get()[0].outerHTML) + '</b>'); let $test2deepest = $("#test2").deepest('p'); $("#result2").html('最深层级节点 <b>#test2</b> DOM树是: <b>' + escape($test2deepest.get()[0].outerHTML) + '</b>'); });