// 选择<p>JavaScript</p>: var js = document.getElementById('test-p');
// 选择<p>Python</p>,<p>Ruby</p>,<p>Swift</p>: var arr = document.querySelectorAll('.c-red.c-green>p');
// 选择<p>Haskell</p>: var haskell = document.getElementById('test-div').lastElementChild.lastElementChild;
Sign in to make a reply
我是--只小小鸟
// 选择<p>JavaScript</p>: var js = document.getElementById('test-p');
// 选择<p>Python</p>,<p>Ruby</p>,<p>Swift</p>: var arr = document.querySelectorAll('.c-red.c-green>p');
// 选择<p>Haskell</p>: var haskell = document.getElementById('test-div').lastElementChild.lastElementChild;