书法字典:https://www.shufadict.com

随笔分类 -  javascript

Axios 禁用缓存
摘要:Disable cache for Axios1. set headers.Cache-Control = 'no cache' // not work for 0.19.x or later?2. set timestamp in url parameter for each request(ne 阅读全文

posted @ 2020-08-12 17:06 翰墨小生 阅读(3705) 评论(0) 推荐(0) 编辑

javascript定义函数后立即执行(IIFE)
摘要:Talk is cheap, show me the code. // Immediately Invoked Function Expression - IIFE // 定义后立即执行的JavaScript函数。 // 基本语法,将函数定义在()内部,最后附加()执行函数。 // 一个小技巧,先写 阅读全文

posted @ 2020-08-08 19:31 翰墨小生 阅读(816) 评论(0) 推荐(0) 编辑

react项目添加typescript类型定义文件 .d.ts
摘要:最近用react + antd mobile + typescript开发项目,其中使用了rc-form这个包,可惜没有typescript版本,导致找不到类型定义。 一起来重温一下这个经典的错误。 D:/Code/test/src/pages/me/register/RegisterTest.ts 阅读全文

posted @ 2020-07-07 08:50 翰墨小生 阅读(8665) 评论(0) 推荐(1) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
书法字典:https://www.shufadict.com
点击右上角即可分享
微信分享提示