摘要: 参考https://www.cnblogs.com/xiaoyuxy/p/12038699.html#part_five 引入字体 @font-face { font-family: 'MPLUS1'; font-display: block; src: url('../fonts/MPLUS1-V 阅读全文
posted @ 2022-02-23 15:45 fanly_hh 阅读(91) 评论(0) 推荐(0)
摘要: 1.安装"@alitajs/hd"插件 2.在配置文件里配置 plugins: ['@alitajs/hd'],hd: { px2rem: { rootValue: 100, selectorDoubleRemList: [/.ant-/], },} 3.参考用less写公共方法 .px2rem(@ 阅读全文
posted @ 2022-02-22 13:53 fanly_hh 阅读(166) 评论(0) 推荐(0)
摘要: eg:index.less .content{ p{ font-size:16px; } } 在react组件中引入less 1.import "../styles/index.less" <div className={content}></div> 2.import style from '.. 阅读全文
posted @ 2022-02-21 18:56 fanly_hh 阅读(487) 评论(0) 推荐(0)
摘要: 问题:浏览器刚进来的时候,页面不能解析正确的语言解决:useEffect(() => { if(!window.localStorage.getItem("umi_locale")){ //关键 setLocale('en-US', false);//关键 } let language = navi 阅读全文
posted @ 2022-02-18 15:53 fanly_hh 阅读(391) 评论(0) 推荐(0)
摘要: <style> @font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('./fonts/Roboto-Light.ttf'); } @font-fa 阅读全文
posted @ 2022-02-18 15:13 fanly_hh 阅读(169) 评论(0) 推荐(0)
摘要: css设置:white-space:pre-line 文字中设置:"文字\n微博" 阅读全文
posted @ 2022-02-18 14:34 fanly_hh 阅读(71) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/thlzjfefe/article/details/108658206 一. 把所有的输出包裹到obj对象里 export function f1(){} export function f2(){} import * as Fn from './i 阅读全文
posted @ 2022-02-14 14:33 fanly_hh 阅读(392) 评论(0) 推荐(0)
摘要: 1.空值合并操作符?? 只有当左侧为null或者undefined 时候,才会返回右侧的数,否则返回左侧操作数 与(||)不同,或操作符会在左侧操作数为假值时返回右侧操作数,例如(‘’ 或者 0) null ?? 'default string' default string 0 ?? 42 0 0 阅读全文
posted @ 2022-02-14 14:02 fanly_hh 阅读(745) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/huanhuan03/article/details/120649350 阅读全文
posted @ 2022-02-09 14:31 fanly_hh 阅读(73) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/zzz_zjz/article/details/105006921 1.调用播放列表接口 https://developers.google.com/youtube/v3/docs/playlists/list (将channelId 和YOUR_A 阅读全文
posted @ 2022-01-25 17:40 fanly_hh 阅读(73) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示