首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
憨憨是条狗
掘友等级
前端
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
19
文章 19
沸点 0
赞
19
返回
|
搜索文章
赞
文章( 19 )
沸点( 0 )
webpack 插件 ProvidePlugin 的使用方法和 eslint 配置
ProvidePlugin:自动加载模块,而不必到处 import 或 require 。点击查看官方文档 配置完以后就可以在代码里直接使用 _,而不再需要 import 了。
CentOS 下 安装 Nginx
1. Install the prerequisites 2. To set up the yum repository, create the file named /etc/yum.repos.d/nginx.repo with the following contents…
ESLint + Prettier + husky + lint-staged 规范统一前端代码风格
ESLint: Find and fix problems in your JavaScript code. Prettier: Prettier is an opinionated code formatter. Husky: Husky can prevent bad gi…
原生 JS 的 Base64 转码
注意:这两个方法不适合非 ASCII 码的字符,会报错。 encodeURIComponent() 该方法会转码除了语义字符之外的所有字符,即元字符也会被转码。 decodeURIComponent() 该方法是 encodeURIComponent()方法的逆运算。
Docker 命令 & 构建前端项目镜像
打开浏览器,访问 localhost:8080,页面正常,则成功。
前端国际化, React 项目多语言:React-i18next 本地化数据 && 请求后台数据
根据 resources 上面的注释,把 resources 部分提取到 json 文件中,然后 import 引入。 目前为止,还没有用到 i18next-xhr-backend , 这个插件可以使你的 json 文件放到 public 目录下使用(下例 Locales JS…
原生 JS 将 canvas 生成图片
跨域的图片需要设置 crossOrigin="Anonymous" 属性, 然后需要等图片加载完成后才能使用 toDataURL() 方法, 否则会报错:Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLC…
前端 CI/CD 自动化部署 GitHub / GitLab 项目到服务器
1. 配置工作流程 在 .github/workflows 目录下 添加 xxx.yml 或 xxx.yaml 文件 (注意保持缩进, 文件名 xxx 随意,语法:参考资料 3. ) 2. 配置服务器密钥:(密钥在文件在 ~/.ssh/ 目录下) 3. 配置 GitHub SS…
CSS Modules 配置,及 Antd 组件样式重写
类名都会生成 Hash 字符串 的形式出现在 dom 的 class 里。 而使用 :global(.className) { // Your CSS Code... } 或 :global { .className { // Your CSS Code... } } 的语法,…
个人成就
文章被点赞
2
文章被阅读
918
掘力值
144
关注了
1
关注者
1
收藏集
0
关注标签
0
加入于
2021-02-02