上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页
摘要: 在使用npm 安装依赖时,执行到 Missing binding E:\webstorm\notepad\notepad\node_modules\node-sass\vendor\win32-x64-46\binding.node Node Sass could not find a bindin 阅读全文
posted @ 2022-12-09 15:38 ZerlinM 阅读(835) 评论(0) 推荐(0)
摘要: ##问题描述 我正在使用React, react-tiga-swiper做轮播(此处也可替换为其他的轮播组件,解决方案同理),antd的 Image.PreviewGroup做预览。我正在尝试创建一个包含卡片列表的页面。在每张卡片中,都有一个图像轮播。我希望当用户单击图像时,预览会打开,他们可以滑动 阅读全文
posted @ 2022-12-02 17:33 ZerlinM 阅读(496) 评论(0) 推荐(0)
摘要: ##为什么要改node_modules? 在平常的开发中,其实是很少需要改 node_modules 里的代码的。但是如果npm包有点小问题或者不符合我们的场景。 那我应该怎么改才能是最好的呢? ##方法一:直接改 这种很好懂,就是直接进 node_modules 中,找到那个包的代码,并修改对应的 阅读全文
posted @ 2022-12-02 15:23 ZerlinM 阅读(939) 评论(0) 推荐(0)
摘要: 在react native中刷新页面就是改变页面的数据源,如果页面的数据源是state或者是store那么当数据源改变了。页面就会自动刷新的。所以刷新页面的两种方式 1:用redux来做数据源,无论在哪个页面只要改变了某一个页面的数据源,那么那个页面都会刷新 2:用回调的方法来刷新前一个页面,在用r 阅读全文
posted @ 2022-12-02 13:58 ZerlinM 阅读(1069) 评论(0) 推荐(1)
摘要: 代码实现: const transSliceImg = (imgs, num) => { let newImgs = [] return imgs.reduce(function(pre,item,index,imgs){ var begin =index*num; var end =begin+n 阅读全文
posted @ 2022-12-01 17:07 ZerlinM 阅读(241) 评论(0) 推荐(0)
摘要: ##问题: data=[ { value: [ "1997-10-1", 684 ] }, { value: [ "1997-10-2", 200 ] }, { value: [ "1997-10-15", 300 ] }] option = { xAxis: { type: 'category' 阅读全文
posted @ 2022-11-28 14:36 ZerlinM 阅读(1987) 评论(0) 推荐(0)
摘要: antd的Select 官方给出的框架用起来是很方便,但是美观程度差强人意,给出的API里虽有className属性,但是这是进行修改Option的样式 我们审查元素可以看到,下拉框是在body中的,这就无法通过在Select外层直接包一层div就来保证不影响其他Select的下拉框样式。 解决 查 阅读全文
posted @ 2022-11-28 14:29 ZerlinM 阅读(7214) 评论(0) 推荐(0)
摘要: ##问题 运行项目的时候,经常会有一大片错误 Could not freeze ./src/web3/address.js: Cannot read property 'hash' of undefined HardSourceWebpackPlugin是webpack的插件,为模块提供中间缓存步骤 阅读全文
posted @ 2022-11-28 14:06 ZerlinM 阅读(129) 评论(0) 推荐(0)
摘要: 使用a标签下载文件时,会先弹开一个新页面,然后下载文件,那如何在当前页面直接下载文件呢(带下载loading),代码如下: const [downloadLoading, setDownloadLoading] = useState({}); // 下载loading(不需要的话可无视该变量) co 阅读全文
posted @ 2022-11-25 17:28 ZerlinM 阅读(624) 评论(0) 推荐(0)
摘要: 代码: .bounceOutLeft { -webkit-animation : bounceOutLeft .5s 1; animation : bounceOutLeft .5s 1; animation-fill-mode: forwards; position : absolute; top 阅读全文
posted @ 2022-11-14 17:58 ZerlinM 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页