会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
寂静星空2018
博客园
首页
新随笔
联系
订阅
管理
2022年2月14日
es6常用特点
摘要: 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
阅读(40)
评论(0)
推荐(0)
2021年7月12日
css文字滚动
摘要: <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
阅读(230)
评论(0)
推荐(0)
2020年5月11日
随笔
摘要: 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
阅读(169)
评论(0)
推荐(0)
2019年12月3日
下拉菜单事件
摘要: $(".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
阅读(298)
评论(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
阅读(184)
评论(0)
推荐(0)
2019年11月29日
微信分享功能
摘要: 可以看一下这篇文章https://blog.csdn.net/u012274155/article/details/90716828
阅读全文
posted @ 2019-11-29 11:09 寂静星空2018
阅读(156)
评论(0)
推荐(0)
2019年11月6日
随笔记
摘要: 1.父页面调用子页面函数,选择iframe的id + contentWindow +子页面的函数名 2.子页面调用父页面函数,window.parent.父页面的函数名 父页面: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title
阅读全文
posted @ 2019-11-06 14:10 寂静星空2018
阅读(224)
评论(0)
推荐(0)
2019年6月6日
全屏设置
摘要: 地址https://segmentfault.com/a/1190000018029112?utm_source=tag-newest
阅读全文
posted @ 2019-06-06 11:23 寂静星空2018
阅读(141)
评论(0)
推荐(0)
2019年6月5日
判定复选框的选中状态
摘要: 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
阅读(9462)
评论(0)
推荐(1)
2019年5月28日
文本框输入固定长度
摘要: <!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
阅读(282)
评论(0)
推荐(0)
下一页
公告