![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端开发
前端相关的技术收集,原创和转载都有。
sliubuer
这个作者很懒,什么都没留下…
展开
-
npm查看包历史
npm view versions --json原创 2022-11-03 11:10:40 · 1443 阅读 · 0 评论 -
网站收藏收藏
实用网站收藏原创 2022-07-19 11:01:06 · 77 阅读 · 0 评论 -
用canvas海报添加文字
canvas给海报添加文件原创 2022-06-21 14:39:38 · 3680 阅读 · 2 评论 -
nginx常用命令
nginx -t #查看nginx配置文件路径nginx #启动nginxnginx -s stop #关闭nginxnginx -s reload #重启nginxnginx -v #查看nginx版本原创 2022-05-05 15:28:19 · 935 阅读 · 0 评论 -
scrollY,scrollTo
window.scrollY //获取页面滚动高度window.scrollTo(0, 0) //设置页面滚动高度原创 2022-04-21 15:30:06 · 236 阅读 · 0 评论 -
算法数据结构
并查集原创 2021-12-22 17:24:49 · 303 阅读 · 0 评论 -
精确判断数组或者对象
精确判断数组或者对象代码Object.prototype.toString.call(arr)Object.prototype.toString.call(obj) 结果[object Array][object Object]原创 2021-11-21 14:28:07 · 307 阅读 · 0 评论 -
http-server可用版本
http-server可用版本npm install -g http-server@0.9.0原创 2021-10-29 16:02:36 · 486 阅读 · 0 评论 -
2021-08-20
debugger //在代码中添加可以产生断点原创 2021-08-20 15:38:40 · 55 阅读 · 0 评论 -
使用iframe时候调用钉钉要注意啦!
在iframe的页面里,调用钉钉相关的api不是执行。我同一份代码在谷歌浏览器中可以执行,但是在钉钉中无法执行。在iframe的子页面中调用钉钉的api是不会执行的原创 2021-08-09 20:26:51 · 1494 阅读 · 0 评论 -
前端高级文章收藏
前端高级jest测试jest测试使用Jest测试JavaScript (入门篇)原创 2021-08-08 11:22:53 · 64 阅读 · 0 评论 -
javascript-obfuscator报错问题
{ "compact": false, "controlFlowFlattening": true, "controlFlowFlatteningThreshold": 0.75, "deadCodeInjection": true, "deadCodeInjectionThreshold": 0.4, "debugProtection": false, "debugProtectionInterval": false, "disableCon原创 2021-06-25 17:09:35 · 1873 阅读 · 0 评论 -
移动端vconsole
一、链接方式引入<script src="/static/js/vconsole.min.js"></script>var vconsole = new VConsole();二、vue引入import Vconsole from 'vconsole' Vue.prototype.$vConsole = new Vconsole()原创 2021-06-07 12:03:51 · 72 阅读 · 0 评论 -
npm config get prefix
npm config get prefix原创 2021-05-18 18:08:41 · 2091 阅读 · 0 评论 -
微信隐藏滚动条
MyBox为页面最外层的div。 .MyBox { height: 100vh; width: 100vw; overflow-y: scroll; overflow-x: hidden; } .MyBox::-webkit-scrollbar { background-color: transparent; }原创 2021-04-27 21:30:57 · 204 阅读 · 0 评论 -
回到顶部
window.scrollTo(0, 0)原创 2021-03-15 21:58:07 · 69 阅读 · 0 评论 -
git常用命令
git git log --reflog 查看完整版本记录git reset --hard 回退到指定版本原创 2021-03-03 14:31:51 · 159 阅读 · 1 评论 -
git clone
clone到当前文件git clone http://x.com/mytest.git结果:会在当前文件夹下生成 mytest 默认文件夹完整路径 d:\mygit\mytest…(文件)clone到指定文件夹注意:请确保指定的的文件夹下没有其它文件,否则会提示错误信息。git clone http://x.com/mytest.git "./"结果:会直接将远程文件克隆在当前文件夹下完整路径 d:\mygit…(文件)git clone http://x.com/mytest.g原创 2021-01-12 14:32:52 · 285 阅读 · 0 评论 -
VUE动态加载本地背景图片
document.querySelector(".mine_vip").style.backgroundImage = 'url(' + require("../assets/mine/mineNoneVip.png") +')'原创 2020-12-15 15:45:39 · 1003 阅读 · 0 评论 -
VUE打包报错
VUE使用npm打包报错问题在根目录下新建vue.config.js文件module.exports = {publicPath: ‘./’, // 相对于 HTML 页面(目录相同)}原创 2020-11-30 11:49:23 · 158 阅读 · 0 评论 -
编程学习自己整理文章
正则表达式转载 2020-08-09 15:38:01 · 418 阅读 · 0 评论 -
前端文章收藏
文章目录前端文章收藏CSSjs前端文章收藏CSSCSS选择器有哪些jspromise转载 2020-07-04 09:28:00 · 755 阅读 · 2 评论