写了一个验证码60s倒计时的小demo来帮助记忆和区别setInterval和setTimeout。 html <input type="button" id="btn1" value="setInterval获取验证码btn1" onclick="getTime1()" /> <input typ ...
分类:
其他好文 时间:
2020-03-28 14:59:00
阅读次数:
80
<!DOCTYPE html> <html> <head> </head> <body> <div id = "box" name = "bird"> </div> <script> // 获取属性节点的方式:利用元素节点的attribute属性来获取到所有的属性节点,使用下标获取某个属性节点 va ...
分类:
其他好文 时间:
2020-03-28 13:14:44
阅读次数:
70
jQuery动画上下滑动slideDown() slideUp() slideToggle()用法 <button>www.hongjingcs.com</button> 1,jQuery slideDown() 向下方法 $("#flip").click(function(){ $("#panel ...
分类:
Web程序 时间:
2020-03-28 10:29:36
阅读次数:
108
jQuery元素css尺寸方法 jQuery 提供多个处理尺寸的重要方法: width() height() innerWidth() innerHeight() outerWidth() outerHeight() 1,jQuery width() 和 height() 方法 $("button" ...
分类:
Web程序 时间:
2020-03-27 15:39:02
阅读次数:
84
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <form action="" method="post"> <h1 align="center">用户注册信息</h1> <tab ...
分类:
Web程序 时间:
2020-03-26 16:26:08
阅读次数:
92
火狐浏览器中的css hack /**火狐浏览器兼容处理**/ /**火狐浏览器(所有)兼容处理**/ @-moz-document url-prefix() { 在这里输入兼容样式 } /**火狐浏览器2版本兼容处理**/ html>/**/body .selector, x:-moz-any-l ...
分类:
其他好文 时间:
2020-03-26 15:22:00
阅读次数:
234
Jquery设置获取DOM元素属性 1, attr() $("button").click(function(){ $("#runoob").attr("href","www.96net.com.cn"); }); 2, 可以传递匿名函数 $("button").click(function(){ ...
分类:
Web程序 时间:
2020-03-26 14:01:59
阅读次数:
103
css样式: button{ display: block; margin: 0px auto 20px; } div{ width: 200px; height: 200px; background: pink; margin: 0 auto; display: none; } HTML内容: < ...
分类:
Web程序 时间:
2020-03-26 13:53:08
阅读次数:
90
(一) 三 示例学习 2.响应数值输入 (1)主页——新建——APP——响应数值输入 (2)知识点解读 这里将学习 数值输入 响应 图像的相关内容。界面如下,包括左面板:四个数值文本编辑框、一个按钮button、右面板:一个坐标区,坐标区内有网格布局,并相应地对控件的名称、属性进行了修改,这些内容可 ...
分类:
移动开发 时间:
2020-03-25 21:08:30
阅读次数:
138
一. onreadystatechange 1. XMLHttpRequest对象有一个属性readyState,将其(xhr.readyState)打印后发现。进入onreadystatechange请求方式中时,可以打印其状态为2,状态为3,状态为4。 <button id="btn">请求纯文 ...
分类:
Web程序 时间:
2020-03-25 13:18:08
阅读次数:
307