会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风花一世月
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2024年2月2日
next.js 中引入vconsole,报错 ReferenceError: XMLHttpRequest is not defined
摘要: 原因好像是服务端渲染没有没有XMLHttpRequest 对象, 解决办法: _app.tsx中直接引入,不用import <Script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js" onLoad={() => { new
阅读全文
posted @ 2024-02-02 15:37 风花一世月
阅读(142)
评论(0)
推荐(0)
2024年1月3日
Warning: [antd: Modal] Static function can not consume context like dynamic theme. Please use 'App' component instead.
摘要: react 的model.confirm报错,它意味着你在使用动态主题(Dynamic Theme)时不能在静态函数中使用上下文,需要使用contextHolder const [modal, contextHolder] = Modal.useModal(); React.useEffect(()
阅读全文
posted @ 2024-01-03 10:40 风花一世月
阅读(1576)
评论(0)
推荐(0)
2023年12月15日
vue3Cron表达式组件
摘要: npm安装no-vue3-cron引入报错,就直接把代码拿来自己改了 no-vue3-cron仓库地址:https://github.com/wuchuanpeng/no-vue3-cron vue-cron.vue <style lang="scss"> .no-vue3-cron-div { .
阅读全文
posted @ 2023-12-15 14:20 风花一世月
阅读(1893)
评论(0)
推荐(0)
2023年12月11日
uview1 的u-tabs组件在微信小程序中会出现横向滚动条
摘要: uview1 的u-tabs组件在微信小程序中会出现横向滚动条,真机才会生效,微信开发者工具没问题包括官方示例也会 原因:未屏蔽微信小程序的滚动条 解决办法:uview-ui中uview-ui/components/u-tabs/u-tabs.vue文件把h5屏蔽滚动条的条件编译加上 || MP-W
阅读全文
posted @ 2023-12-11 17:58 风花一世月
阅读(553)
评论(0)
推荐(0)
2023年12月4日
前端导出后端返回的数据流为xlsx文件
摘要: 后端返回格式为PK开头 exportMonitor({ids:idsList}).then((res:any)=>{ const link = document.createElement('a') let blob = new Blob([res], { type: 'application/vn
阅读全文
posted @ 2023-12-04 16:26 风花一世月
阅读(146)
评论(0)
推荐(0)
vue3使用::v-deep深度选择器不生效
摘要: 会出现 ::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead of ::v-deep <inner-selector>.的报错 ::v-depth用作组合子已被弃用。使用:dee
阅读全文
posted @ 2023-12-04 14:51 风花一世月
阅读(3221)
评论(0)
推荐(0)
2023年8月15日
常用的请求 Content-Type 类型
摘要: application/json:用于发送 JSON 格式的数据,常用于 RESTful API 请求中。 application/x-www-form-urlencoded:在 POST 请求中以 URL 编码(key-value 对)的方式发送表单数据。 multipart/form-data:
阅读全文
posted @ 2023-08-15 15:40 风花一世月
阅读(174)
评论(0)
推荐(0)
2023年7月24日
解决非同源跨域不带cookie问题(原生、axios、fetch写法等)
摘要: 原生js写法 var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://localhost:7001/api/userinfo', true); xhr.withCredentials = true; // 开启withCredentials x
阅读全文
posted @ 2023-07-24 17:10 风花一世月
阅读(137)
评论(0)
推荐(0)
2023年7月13日
uniapp 在app和小程序端使用webview进行数据交互
摘要: 结论:app端支持比较好可以做到实时传递,微信小程序支持比较差,小程序向url传参只能通过url,url向app传参需要特定时机(后退、组件销毁、分享、复制链接)触发才能收到消息。 以下是代码 app端(需要使用nvue) <template> <view class="webview-box">
阅读全文
posted @ 2023-07-13 17:53 风花一世月
阅读(1431)
评论(0)
推荐(0)
2023年7月4日
iframe编码为utf-8.嵌入页面为gb2312 ,word导出默认为gb2312 格式
摘要: 使用记事本打开html,另存为,保存类型选择:"所有文件"、编码选择:“UTF-8” 打开保存后文件编码类型改成utf-8 第一个步骤是为了把内容改成utf-8,然后直接执行第二步改编码可能会报乱码
阅读全文
posted @ 2023-07-04 16:18 风花一世月
阅读(120)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页
公告