散碎笔记-------2019--至今(bicai)
循环
Object.keys -> 遍历自身可枚举的属性
Object.getOwnPropertyNames -> 获取自身可枚举的属性
obj.hasOwnProperty -> 是否自身属性
for(let key in obj) -> 遍历自身及原型链上可枚举的属性
ps: for(key value of obj) -> es6创造的对各种数据结构统一的访问接口,数据结构必须要有一个[Symbol.iterator]方法,此方法返回一个具有next方法的遍历器对象
一个坑点,在阻止微信下拉出现网址时,大家都会使用到
document.body.addEventListener('touchmove', e=>{
event.preventDefault()
})
这种方法在最新的微信浏览器中已经不好使了,并且在chrome中还会报错:
Unable to preventDefault inside passive event listener due to target being treated as passive.
需要在后面再传参数:
document.body.addEventListener('touchmove', e=>{
event.preventDefault()
},{passive: false})
- 6位(#000000)就是RGB值
- 8位(#1e000000)头两位是透明度,后6位是RGB值,00是完全透明,ff是完全不透明,比较适中的透明度值是 1e 安卓不生效
- font-weight:x ios 不生效 兼容问题
- 苹果系统 IOS 12 的H5 BUG :键盘把页面顶上去了,底下留有一块空白区域
https://www.cnblogs.com/haqiao/p/10202048.html
-
ios12下,微信浏览器h5 bug
https://www.oschina.net/question/3029829_2290795 -
IOS12上微信中点击不到表单的bug
https://juejin.im/post/5c066b05f265da61736a1029
-
https://github.com/reng99/blogs/issues/6 javascript中写好条件语句的五个技巧 #6
-
getBoundingClientRect获取元素位置
-
http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html git
git clone git-url
cd xxx
git add .
git commit -m “x”
git push origin mastergit pull
-
下载一个项目和它的整个代码历史
$ git clone [url] -
列出所有本地分支
$ git branch -
列出所有远程分支
$ git branch -r -
新建一个分支,但依然停留在当前分支
$ git branch [branch-name] -
新建一个分支,并切换到该分支
$ git checkout -b [branch] -
切换到指定分支,并更新工作区
$ git checkout [branch-name] -
合并指定分支到当前分支
$ git merge [branch] -
删除分支
$ git branch -d [branch-name] -
删除远程分支
$ git push origin --delete [branch-name]
$ git branch -dr [remote/branch] -
增加一个新的远程仓库,并命名
$ git remote add [shortname] [url] -
取回远程仓库的变化,并与本地分支合并
$ git pull [remote] [branch] -
上传本地指定分支到远程仓库
$ git push [remote] [branch] -
强行推送当前分支到远程仓库,即使有冲突
$ git push [remote] --force -
推送所有分支到远程仓库
$ git push [remote] --all
-
https://github.com/lydiahallie/javascript-questions/issues js 试题
-
ES6模块之export和import教程 https://blog.51cto.com/9161018/2336455
-
获取当地时间戳三种方法
- Date.now();
- new Date().getTime();
- +new Date();
-
ie6+ 清楚浮动 —父元素
.clear:after{
content:".";
display:block;
height:0;
visibility:hidden;
clear:both;
} -
css选择器中的*=,|=,^=,$=,的区别
1.attribute属性中包含value:[attribute~=value] 属性中包含独立的单词为value
e.g:[title~=flower] -->
[attribute*=value] 属性中做字符串拆分,只要能拆出来value这个词就行
e.g:[title~=flower] -->
2.attribute属性以value开头:
[attribute|=value] 属性中必须是完整且唯一的单词,或者以-分隔开
e.g:[lang|=en] -->
[attribute^=value] 属性的前几个字母是value就可以
e.g:[lang^=en] -->
3.attribute属性以value结尾:
[attribute$=value] 属性的后几个字母是value就可以
e.g:a[src$=".pdf"]
- Vue 使用中的小技巧https://mp.weixin.qq.com/s/YO73U8OAw9Isg0GguakHZw
-
Vue packages version mismatch: 版本始终不对的解决方案:http://www.bubuko.com/infodetail-2475951.html
-
input实现placeholder 垂直方向高度 https://www.cnblogs.com/ppxyq/p/9530627.html transform: translate(0, -10px);
-
vue 启动突然 多行文本省略号样式失效丢失,以及控制台显示autoprefixer警告’Autoprefixer applies control comment to whole block, not to next rules.’ https://www.cnblogs.com/yangguojin/p/10301981.html
-
vuecli3—vantui—rem 适配方案—https://github.com/youzan/vant/issues/1181-------https://www.jianshu.com/p/1f1b23f8348f
- 某某shua接口:
setInterval(()=>{
$.ajax({
url: "xxxx",
type: "post",
dataType: "json",
data:{
formAction: "company_review_changeCommentNum",
reviewID: xxx,
companyID: xxxx,
favoriteNum: 1
},
success: function (res){
console.log(res)
}
})
},1000)
-
vant ui 在vue中的安装和使用
https://blog.csdn.net/webfront/article/details/80277844
https://www.cnblogs.com/Jiangchuanwei/p/9857557.html vant ui 在vue中的安装和使用 -
连连赚–rem-参考 https://www.cnblogs.com/muzimumu/p/10918059.html
-
只选择年 https://c.runoob.com/codedemo/4855?tdsourcetag=s_pcqq_aiomsg
-
微信小程序-携带参数的二维码条形码生成
https://www.cnblogs.com/chen-lhx/p/8418321.html -
Vue.extend构造器的延伸-----动态生成组件
http://ju.outofmemory.cn/entry/351765
https://www.cnblogs.com/vbyzc/p/9040398.html -
占位图片 https://dummyimage.com/100x20
-
Vue scrollBehavior 滚动行为
-
使用WEUI如何实现页面中其它控件或内容的不同屏幕适配?
https://github.com/Tencent/weui.js/issues/141
https://www.jianshu.com/p/2a97d3b75c16 -
读jquery-weui的rem.less rem适配规则
https://www.cnblogs.com/Merrys/p/8098636.html
getComputedStyle(window.document.documentElement)[‘font-size’](获取html跟节点的font-size)
- 阿里云ECS 搭建ftp采坑记录
关于Xftp上传文件状态错误的解决
https://www.pianshen.com/article/575347257/
https://blog.csdn.net/zin521/article/details/81260282
VIM 进入和退出命令
https://www.cnblogs.com/chen-nn/p/11531932.html
ThinkPHP项目部署到阿里云服务器上的步骤(三)
https://blog.csdn.net/qq_43576844/article/details/93328836
Linux创建ftp并设置权限以及忘记ftp帐号(密码)修改
https://www.cnblogs.com/zuochuang/p/6490559.html
如何将本地文件通过终端上传到linux服务器 /服务器/阿里云
https://blog.csdn.net/weixin_41010198/article/details/81162719
Linux实例搭建FTP站点
https://www.alibabacloud.com/help/zh/doc-detail/92048.htm
FTP的搭建和使用
https://help.aliyun.com/knowledge_detail/60152.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」