jQuery练习t306,从0到1

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-3.5.1.js"></script>
    <script>
        //检测操作
        //$.isFunction(fn) 判断是否为数组,是true,否false
        var fn = function () {

        };
        alert($.isFunction(fn));

        /*
        jQuery提供的用于检测操作的工具函数
        $.isFunction(obj)
        $.isArray(obj)
        $.isEmptyObject(obj)
        $.isPlainObject(obj)
        $.contains(node1,node2);


         */
    </script>
</head>
<body>

</body>
</html>

猜你喜欢

转载自blog.csdn.net/modern358/article/details/113809949