会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LancelotSeven
博客园
首页
新随笔
联系
订阅
管理
2024年6月25日
ssh key -f 设置别名后 git ssh需要密码
摘要: git 添加 配置 git config core.sshCommand "ssh -i ~/.ssh/id_rsa"ssh 测试时 添加 -i 参数 指定 密匙来源 Git 如何配置命令行 Git 使用 SSH 密钥|极客教程 (geek-docs.com)
阅读全文
posted @ 2024-06-25 16:02 LancelotSeven
阅读(10)
评论(0)
推荐(0)
2019年1月12日
css常用命名
摘要: 常用的CSS命名 头:header 内容:content/container 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体佈局宽度:wrapper 左右中:left right center 登录条:loginbar 标志:logo 广告:banner
阅读全文
posted @ 2019-01-12 09:51 LancelotSeven
阅读(151)
评论(0)
推荐(0)
2018年1月7日
css实现超出两行隐藏
摘要: overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
阅读全文
posted @ 2018-01-07 14:10 LancelotSeven
阅读(2452)
评论(0)
推荐(0)
2017年12月15日
函数字面量
摘要: 函数关键字(function)语句: function fn(x){ alert(x); } 函数字面量(Function Literals): var fn = function(x){ alert(x); } Function()构造函数: var fn= new Function( 'x','
阅读全文
posted @ 2017-12-15 16:50 LancelotSeven
阅读(449)
评论(0)
推荐(0)
对象方法链化
摘要: come from javascriptcookbook 使用call()将两个对象连接起来。如果想在两个对象之间传递参数列表,则使用apply()。
阅读全文
posted @ 2017-12-15 15:58 LancelotSeven
阅读(111)
评论(0)
推荐(0)
2017年12月12日
关于条件语句和 a && b
摘要: learn from javascript cookbook 该语句 等价于 如果该元素的值为ab,就会执行第二组括号中的赋值
阅读全文
posted @ 2017-12-12 15:06 LancelotSeven
阅读(146)
评论(0)
推荐(0)
2017年12月11日
Java script 逻辑运算符
摘要: a && b : 将a, b转换为Boolean类型, 再执行逻辑与, true返回b, false返回a 1、只要“&&”前面是false,无论“&&”后面是true还是false,结果都将返“&&”前面的值; 2、只要“&&”前面是true,无论“&&”后面是true还是false,结果都将返“
阅读全文
posted @ 2017-12-11 16:15 LancelotSeven
阅读(285)
评论(0)
推荐(0)
2017年11月17日
逛论坛时发现 有关 递归调用
摘要: 虽然我还不是完全明白 现在先记下来 function add(){ } 函数体内可以用add调用到自己 var add = function{ } add 则不行 用arguments.callee可解决问题,这是一个指向正在执行的函数的指针,arguments.callee返回正在被执行的对现象
阅读全文
posted @ 2017-11-17 11:42 LancelotSeven
阅读(125)
评论(0)
推荐(0)
2017年11月10日
响应式设计思维
摘要: Responsive Web Design 通过媒体查询@media为不同大小的设备加载不同层叠样式表 <meta name="viewport" content="width=device-width" /> <link rel="stylesheet" type="text/css" href=
阅读全文
posted @ 2017-11-10 17:24 LancelotSeven
阅读(152)
评论(0)
推荐(0)
2017年11月9日
原生js实现删除class和添加class
摘要: 内容来自百度搜索 //判断样式是否存在 function hasClass(ele, cls) { return ele.className.match(new RegExp("(\\s|^)" + cls + "(\\s|$)")); } //为指定的dom元素添加样式 function addC
阅读全文
posted @ 2017-11-09 18:47 LancelotSeven
阅读(2225)
评论(0)
推荐(0)
下一页
公告