// 选择<p>JavaScript</p>: var js = document.getElementById("test-p"); // 选择<p>Python</p>,<p>Ruby</p>,<p>Swift</p>: var arr = document.querySelector(".c-red.c-green").children; // 选择<p>Haskell</p>: var haskell = document.querySelector(".c-green:last-child :last-child");
Sign in to make a reply
__子实__