摘要: 1 //Screen 屏幕,显示器左上角 2 //page 页面 当前页面左上角 3 //client 可视区域 显示页面的区域的左上角 4 //offset 元素 元素的左上角 基本事件: 1 // $(".child") .click(function(){ 2 // console.log(0 阅读全文
posted @ 2021-11-10 11:58 小小不小阿 阅读(23) 评论(1) 推荐(0) 编辑
摘要: attr (属性名,属性值),获取属性,设置属性 <script> $("span").attr("data-id","1002"); </script> <body> <span id="span" data-id="1001">姓名:</span> </body> 没有参数时的获取,带参数时设置 阅读全文
posted @ 2021-11-10 08:58 小小不小阿 阅读(13) 评论(0) 推荐(0) 编辑