摘要: 1,变量声明 let 与 var 的区别 var 1 声明的变量没有局部作用域 2 可以声明多次 let 1 声明的变量有局部作用域 2 相同变量只能声明一次 2,const 声明常量 1 不允许改变 2 一但声明必须初始化 3,解构赋值 1 数组解构:let [a , b , c ] = [1 , 阅读全文
posted @ 2022-02-14 15:51 寂静星空2018 阅读(28) 评论(0) 推荐(0) 编辑
摘要: <div class="mechanism"> <div class="re_roll"> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>1</li> <li>2</li> <li>3</li> <li>4</li> 阅读全文
posted @ 2021-07-12 13:54 寂静星空2018 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1,math计算数学方法 math.floor(x) 下舍入 math.ceil(x) 上舍入 math.abs(x) 绝对值 math.round(x) 四舍五入 math.random() 0~1随机数 2,数组方法 concat() 合并数组 filter() 返回符合条件对的所有元素的数组 阅读全文
posted @ 2020-05-11 20:39 寂静星空2018 阅读(159) 评论(0) 推荐(0) 编辑
摘要: $(".nav").on("click",".Class_A",function(e){ var NM=$(this).parent().siblings('li').children('.Class_A'); var Name=$(this).parent().attr("name"); $(th 阅读全文
posted @ 2019-12-03 11:59 寂静星空2018 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1,引入<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js" type="text/javascript" charset="utf-8"></script>微信js 2, //微信信息获取 function wxcallback() 阅读全文
posted @ 2019-12-03 11:52 寂静星空2018 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 可以看一下这篇文章https://blog.csdn.net/u012274155/article/details/90716828 阅读全文
posted @ 2019-11-29 11:09 寂静星空2018 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.父页面调用子页面函数,选择iframe的id + contentWindow +子页面的函数名 2.子页面调用父页面函数,window.parent.父页面的函数名 父页面: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title 阅读全文
posted @ 2019-11-06 14:10 寂静星空2018 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 地址https://segmentfault.com/a/1190000018029112?utm_source=tag-newest 阅读全文
posted @ 2019-06-06 11:23 寂静星空2018 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1获取当前状态(.prop()) 可用来判断状态 <input type="checkbox" name="test" id="test1"/> //未被选中 <input type="checkbox" name="test" id="test2"/ checked> //选中 console.l 阅读全文
posted @ 2019-06-05 19:03 寂静星空2018 阅读(9439) 评论(0) 推荐(1) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script> </h 阅读全文
posted @ 2019-05-28 10:22 寂静星空2018 阅读(272) 评论(0) 推荐(0) 编辑