摘要: word-wrap: normal|break-word; normal 只在允许的断字点换行(浏览器保持默认处理)。 break-word 在长单词或 URL 地址内部进行换行。 阅读全文
posted @ 2022-01-11 16:06 coffeemil 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1、使用css引入字体文件 目录结构 代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name= 阅读全文
posted @ 2022-01-03 03:04 coffeemil 阅读(307) 评论(0) 推荐(0) 编辑
摘要: sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backu 阅读全文
posted @ 2021-12-26 22:36 coffeemil 阅读(23) 评论(0) 推荐(0) 编辑
摘要: var f = '99999999999'.replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,') console.log(f) 阅读全文
posted @ 2021-12-02 14:58 coffeemil 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 卸载dart-sass npm uninstall sass 安装node-sass npm install node-sass -D 阅读全文
posted @ 2021-11-23 10:29 coffeemil 阅读(231) 评论(0) 推荐(0) 编辑
摘要: console.time("timeTest"); 代码区域 coneole.timeEnd("timeTest"); 阅读全文
posted @ 2021-11-17 11:27 coffeemil 阅读(51) 评论(0) 推荐(0) 编辑
摘要: #region #endregion 阅读全文
posted @ 2021-11-17 11:24 coffeemil 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 什么是柯理化? 柯理化(Currying)是把接受多个参数的函数变换成接受一个单一参数(最初函数的第一个参数)的函数,并且返回接受余下的参数且返回结果的新函数的技术。 普通函数 //函数定义 function add(a,b){ return a + b } //函数调用 add(1, 2); 柯理 阅读全文
posted @ 2021-11-16 18:25 coffeemil 阅读(71) 评论(0) 推荐(0) 编辑
摘要: vue封装多行confirm import { Message, MessageBox, Notification, Loading } from 'element-ui' // 确认窗体 confirm(content,that) { if(Array.isArray(content) && th 阅读全文
posted @ 2021-11-16 15:00 coffeemil 阅读(383) 评论(0) 推荐(0) 编辑
摘要: debounce.js import Vue from "vue" Vue.directive("debounce", { inserted: function (el, binding) { let timer el.addEventListener('click', () => { if (ti 阅读全文
posted @ 2021-11-15 14:53 coffeemil 阅读(101) 评论(0) 推荐(0) 编辑