会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
等风来灬
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2022年4月20日
Node版本兼容node-sass版本
摘要: 项目:Vue2 在启动项目的时候可能会出现 node-sass 包报错,在确保node-sass、sass-load 、style-loader三个包之间的版本是匹配的时候,大部分原因是因为是电脑上node版本与项目里面的node-sass包之间的版本存在兼容问题。 附上:node版本与node-s
阅读全文
posted @ 2022-04-20 16:46 等风来灬
阅读(2330)
评论(0)
推荐(0)
2021年12月7日
vue本地代理HTTPS
摘要: 版本 : "vue": "^2.5.2" "webpack": "^3.6.0" 第一步:配置以下代码 secure: false // 安全证书校验 headers:{ Referer: 'https://xxxxxxxx:8899' // 请求的来源 } 1 proxyTable: { 2 '/
阅读全文
posted @ 2021-12-07 15:20 等风来灬
阅读(2183)
评论(0)
推荐(0)
2021年11月29日
js 判断是否为正整数
摘要: 用法: 1 if (!(/(^[1-9]\d*$)/.test(num))) { 2 alert(‘输入的不是正整数’); 3 return false; 4 }else { 5 alert(‘输入的是正整数’); 6 } 判断数字、浮点的正则表达: 1 ”^\\d+$” //非负整数(正整数 +
阅读全文
posted @ 2021-11-29 13:45 等风来灬
阅读(2443)
评论(0)
推荐(0)
2021年11月18日
vue 生产webpack打包之后路径报错处理
摘要: vue 版本: "^2.5.2" webpack版本: "^3.6.0" 1. 首次打包之后页面空白 修改config/index/build/assetsPublicPath 为“./” 1 build: { 3 index: path.resolve(__dirname, '../dist/in
阅读全文
posted @ 2021-11-18 11:16 等风来灬
阅读(406)
评论(0)
推荐(0)
2021年8月10日
Vue使用国密SM4加密
摘要: 1 npm install gm-crypt 1 const SM4 = require("gm-crypt").sm4; 2 let sm4Config = { 3 //配置sm4参数 4 key: "gDg4g8CQyIrs^bv2", //这里这个key值是跟后端要的 5 mode: "ecb
阅读全文
posted @ 2021-08-10 10:05 等风来灬
阅读(4386)
评论(0)
推荐(0)
2021年8月3日
vue + echarts + echarts-gl 实现3D 环状图
摘要: "echarts": "^4.9.0","echarts-gl": "^1.1.2" 缺点: 性能问题不是很好,长时间页面卡顿 <!DOCTYPE html> <html style="height: 100%"> <head> <meta charset="utf-8"> <style> .wat
阅读全文
posted @ 2021-08-03 15:10 等风来灬
阅读(1664)
评论(0)
推荐(1)
2021年7月23日
React Hook 初学
摘要: 1. react: "^16.13.1" React 16.8 的新增特性,取消原先class 类写法 配合react 开发的库有antd UI 库,ramda 对react 相对友好的 js 工具类库。此项目用到 antd: "^3.26.16" ramda: "^0.26.1" react ho
阅读全文
posted @ 2021-07-23 09:50 等风来灬
阅读(66)
评论(0)
推荐(0)
2021年6月4日
常用阻止默认行为的两种方式
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 7 <meta name="viewpor
阅读全文
posted @ 2021-06-04 14:31 等风来灬
阅读(503)
评论(0)
推荐(0)
理解事件触发,事件捕获,事件冒泡
摘要: 1. 事件对象: 事件触发时自动创建的,封装了事件发生的元素和属性的信息。(存在event信息里面) 2. 事件周期:事件捕获、事件对象的触发,冒泡触发 3. 事件冒泡的应用: (1)阻止冒泡 e.stopPropagation(); IE: e.cancelBubble = true; (2)事件
阅读全文
posted @ 2021-06-04 14:15 等风来灬
阅读(167)
评论(0)
推荐(0)
dom三种事件绑定的异同
摘要: 广义javascript ECMAScript + DOM + BOM DOM0 DOM1 DOM2 狭义javascript ECMAScript ES6 ES5 ES3 1. html事件 <div onclik="fn()"></div> function fn() { alert("hell
阅读全文
posted @ 2021-06-04 11:22 等风来灬
阅读(119)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告