摘要:
word-wrap: normal|break-word; normal 只在允许的断字点换行(浏览器保持默认处理)。 break-word 在长单词或 URL 地址内部进行换行。 阅读全文
摘要:
1、使用css引入字体文件 目录结构 代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name= 阅读全文
摘要:
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 阅读全文
摘要:
var f = '99999999999'.replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,') console.log(f) 阅读全文
摘要:
卸载dart-sass npm uninstall sass 安装node-sass npm install node-sass -D 阅读全文
摘要:
什么是柯理化? 柯理化(Currying)是把接受多个参数的函数变换成接受一个单一参数(最初函数的第一个参数)的函数,并且返回接受余下的参数且返回结果的新函数的技术。 普通函数 //函数定义 function add(a,b){ return a + b } //函数调用 add(1, 2); 柯理 阅读全文
摘要:
vue封装多行confirm import { Message, MessageBox, Notification, Loading } from 'element-ui' // 确认窗体 confirm(content,that) { if(Array.isArray(content) && th 阅读全文
摘要:
debounce.js import Vue from "vue" Vue.directive("debounce", { inserted: function (el, binding) { let timer el.addEventListener('click', () => { if (ti 阅读全文