渡课学习的第二十八天

学习内容

  • jQuery 的原理、语法、使用方法;
  • jQuery效果、jQuery HTML 操作

学习的jQuery的代码

<script type="text/javascript" src="jquery-3.3.1.js"></script>
    <script type="text/javascript">

        $(function(){
            // alert("加载初始化函数");
            $("#hj").html("你好,jQuery").css("color","red");
            $(".cul li:eq(1)").css("font-size","20px").css("color","red");
            $("a[href*='dodoke.com']").css("color","red");

            // document.getElementById("cul1").onclick = function() {alert("click me");};

            $(".cul li:first").click(function(){alert("click me");});

        });

    </script>

学习总结

今天学习了jQuery(库),总结下是非常有意思的,对于我自己而言还是有一定的难度的,接下来回来好好去学习。

猜你喜欢

转载自blog.csdn.net/weixin_42707543/article/details/81459435