script也是子元素吗?问题在下面,欢迎大神解答

<html>
<head>
    <title>lalala</title>
    <script type="text/javascript" src="jquery-3.1.1.min.js"></script>
</head>
<body>
    <span>a1</span>
    <span>a2</span>
    <span>a3</span>
    <script></script>
</body>
    <script></script>
    <script type="text/javascript">
    $('span:nth-last-child(3)').css("color", "red");
    </script>
</html>
TiGer196
浏览 1339回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP