摘要: 基本效果如图 javascript代码 1 <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script> 2 <script> 3 // 1.让当前的盒子,宽度变成1380px 让其与的盒子宽度变成0 4 // 阅读全文
posted @ 2020-04-10 13:56 RitaD 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: jQuery选择器 可在 http://jquery.cuishifeng.cn/ jQuery API中文文档中查看对应信息 1、简单选择器 1) id选择器 #id var $box = $("#box"); 2) 类名选择器 .class var $boxs = $(".box"); 3) 标 阅读全文
posted @ 2020-04-10 13:52 RitaD 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 设置+获取 cookie 1 // 设置和获取cookie 2 // 把三个可选参数 放在options里。因为domain、path非必要的情况下不传,而expires的传的频率又比较高 3 function cookie( name , value , options){ 4 // if参数大于 阅读全文
posted @ 2020-04-10 13:38 RitaD 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 实现4位数 数字字母混合验证码(数字+大写字母+小写字母) ASCII 字符集中得到3个范围: 1. 48-57 表示数字0-9 2. 65-90 表示大写字母 3. 97-122 表示小写字母 范围随机数: parseInt(Math.random()*4); //此时Math.random意为“ 阅读全文
posted @ 2020-04-10 13:34 RitaD 阅读(642) 评论(0) 推荐(0) 编辑