七、JQuery-1、概述

2018-06-02  本文已影响0人  cybeyond

1、JQuery是什么

2、特点

3、主要功能

4、选择的原因

5、调试JQuery环境

<html>
<head>
<meta http-equiv="Content-Type content="text/html;charset=gbk" />
<style type="text/css">
#info
{
    width:500px;
    height:500px;
    background-color:blue;
    display:none;   
}
</style>
<script type="text/javascript" src="jslib/jquery-3.3.1.js"></script>
<script type="text/javascript">
$(function(){
    $("#btn").click(function(){//匿名函数
        $("#info").show(2000);
    });
});

</script>
</head>
<body>
<input type="button" value="测试" id="btn"/>
<div id="info"></div>
</body>
</html>
执行结果

JQquery选择器:http://www.blogjava.net/ywj-316/archive/2010/01/21/310340.html

上一篇 下一篇

猜你喜欢

热点阅读