加班使我熟睡
IP:
37关注数
1粉丝数
32获得的赞
工作年
编辑资料
链接我:

创作·117

全部
问答
动态
项目
学习
专栏
加班使我熟睡

为什么在Vue中这种写法 异步组件 没有正常显示?

import 别管静态导入还是动态导入,导入的首先得是个模块。 var PcNoteAsyncComponentFirst = defineAsyncComponent(()=>{ return import("./pcNote.js") }) 你那个 pcNote.js 里压根就没有 export,它能 import 进来啥呢?
0
0
0
浏览量0
加班使我熟睡

小程序中WebView页面为何出现自动生成的返回按钮?如何去除?

小程序代码中跳转webview页面后,页面中多了一个可移动的返回按钮。 https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250113/9d70cbae6b83f9013c8fa1a401535433.png 这个返回按钮是小程序自动生成的吗?如何能将它去掉。
9
1
0
浏览量295
加班使我熟睡

vue如何输出到vscode终端,而不是浏览器devtool?

盲猜是运行环境打不开 DevTools(比如手机),所以希望 console.log 能输出到远程电脑上。 *** 你可以开个 WebSocket 服务,然后劫持 console.log 方法,把日志都往 ws 里写。至于 ws 的服务端收到后你想怎么打印就怎么打印了。 嫌自己搞麻烦可以用别人写好的: * 这是在线服务 👉 "https://console.re/" (https://link.segmentfault.com/?enc=HuB4t7RTjsmlL1%2FNzgSjZA%3D%3D.IFs7m1vpXZ49KvtzB%2BqaIBDGXlCPps%2F1vlxBYm9XPP4%3D) * 这是上面的客户端开源仓库 👉 "https://github.com/kurdin/console-remote" (https://link.segmentfault.com/?enc=UIPDK%2BQA5Tod6P7oBj22VA%3D%3D.T0LsW6Vd1LRPuZKTbU3%2B6ul0mG4fKyvuyKTdkgQel2PXjPQbkJWGPn%2Bkf0EiWDB3) * 这是上面的服务端开源仓库 👉 "https://github.com/kurdin/console-remote-server" (https://link.segmentfault.com/?enc=QDj8vPLWRINZdSZbELj%2BkQ%3D%3D.LedEOJXvkolA4%2FkFKkVpQufu%2BCCvfKfhanK%2FAZwuhPpzFqXD%2BLFwWw8zqmKt57kK)
0
0
0
浏览量0
加班使我熟睡

echart的geo地图, 字体大小在全屏后变小了是怎么回事 ?

打开页面正常, F11全屏后, 字体就变小了, 是怎么回事呢, 而且模糊 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250110/0d0faef45756870eaff0e350af885333.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250110/405446aa9194bc123e30d8693979ebaa.png)
11
1
0
浏览量343
加班使我熟睡

两个数组对象去重并且根据第一个数据生成一个新的对象?

各位大佬,我想请问一下我想通过一个数组对象处理另外一个数组对象。生成一个新的数组对象要怎么处理?我想通过两个时间的字段做判断,给新生成的数组对象里面属性的值加上一个1。怎么写都不对。生成的都是有问题的。 通过的数组对象 thisDate: [{ date: "12", prop: "twelve" },{ date: "13", prop: "thirteen" },{ date: "14", prop: "fourteen" },{ date: "15", prop: "fifteen" },{ date: "16", prop: "sixteen" },{ date: "17", prop: "seventeen" },{ date: "18", prop: "eighteen" }], 想要处理的数组对象 data: [{ "DATE": "2023-09-04 15:33:54.0", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 16:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 17:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 18:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 19:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 20:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 21:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 22:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 23:00:00", "ROOMNAME": "测试会议室1", "ROOMID": "001" }, { "DATE": "2023-09-04 14:53:42.0", "ROOMNAME": "会议室2222", "ROOMID": "002" }, { "DATE": "2023-09-04 15:00:00", "ROOMNAME": "会议室2222", "ROOMID": "002" }, { "DATE": "2023-09-04 16:00:00", "ROOMNAME": "会议室2222", "ROOMID": "002" }, { "DATE": "2023-09-04 17:00:00", "ROOMNAME": "会议室2222", "ROOMID": "002" }, { "DATE": "2023-09-04 18:00:00", "ROOMNAME": "会议室2222", "ROOMID": "002" }, { "DATE": "2023-09-04 19:00:00", "ROOMNAME": "会议室2222", "ROOMID": "002" }, { "DATE": "2023-09-04 20:00:00", "ROOMNAME": "会议室2222", "ROOMID": "002" }] 我的思路有问题想不出来了,写的代码不对生成的有问题。 let list = []; for (let i = 0; i < data.length; i++) { let nextIndex = i + 1 let nextEle = data[nextIndex] if (nextIndex < data.length) { if (data[i].ROOMNAME != nextEle.ROOMNAME) { let objData = { name: nextEle.ROOMNAME, } for (let a = 0; a < _this.thisDate.length; a++) { if (data[i].DATE.slice(11, 13) == _this.thisDate[a].date) { objData[_this.thisDate[a].prop] = '1'; } else { objData[_this.thisDate[a].prop] = ''; } } list.push(objData) } } } console.log('生成新的数组对象'); console.log(list); 我希望的是生成新的数组对象,合并同名,并且根据thisDate生成新的属性。在和data这个json判断时间对等的属性赋值1。 最后希望生成的格式格式是: [{ ROOMNAME: '测试会议室', twelve: '', thirteen: '', fourteen: '', fifteen: '', sixteen: '1', seventeen: '1', eighteen:'1', },{ ROOMNAME: '会议室2222', twelve: '', thirteen: '', fourteen: '1', fifteen: '1', sixteen: '1', seventeen: '1', eighteen:'1', }]
12
1
0
浏览量254
加班使我熟睡

折线图如何配置不同线段的颜色?

我正在处理一个折线图的需求,需要配置折线图中线段为不同颜色,但是我搜到的图表例子和一些库的功能都只能把折线图画成同一种颜色。请问有什么解决办法吗?
9
1
0
浏览量288
加班使我熟睡

如何将下面结构的数组转成树形结构?

[ { "id": "1699242303156596738", "name": "测试a", "firstLevel": "1692438402382204930", "secondLevel": "1692438402382204939", "firstLevelStr": "测试目录1", "secondLevelStr": "测试目录1-2", "thirdLevel": "", "fourthLevel": "", "thirdLevelStr": "", "fourthLevelStr": "", } ... ] 扁平数组的结构如上,每个目录下都可以添加数据 如何将这个数组转成树形的结构啊,转成如下的形式 目录层级的name就取对应的 xxxLevelStr [ { id: 3, name: '访视计划', children: [ { id: 31, name: '研究中心筛选方式', children: [ { id: 33, name: '准备', }, { id: 34, name: '现场访视', } ] }, { id: 32, name: '启动访视', } ] }, { id: 1, date: '2016-05-02', name: '三级目录', children: [ { id: 51, name: '假设A', } ] }, { id: 2, name: '假设C', }, { id: 4, name: '假设D', }, { id: 456, name: '假设E', } ]
12
1
0
浏览量328
加班使我熟睡

vue3语法实践写法?

说一下我观察到的: 1. "uniq()" 一个函数,你在试图使用 "v-for" 对一个函数进行遍历,这是不正确的。 2. 依照你的写法,应该是想使用 "uniq()" 对 "arr" 进行去重,然后再遍历。 3. 那么需要做三件事: 1. 将 `arr` 给 `return` 出去。 2. 在 `uniq()` 内部第一行前面加一个 `return`。 3. 调整 `v-for` 写法为:`uniq(arr)`。 3-2 示例: const uniq = (arr: any) => { return arr.value.reduce( // 此处省略去重函数 , []); } 3-3 示例: {{ item }}
0
0
0
浏览量0
加班使我熟睡

求助,这个有没有动态的类似案例啊?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250105/2188ccebfa0eb7905b68c12e6873c7c3.png)
12
1
0
浏览量372
加班使我熟睡

使用:global在组件内去修改antd的全局样式,为何并没有生效?

题主的"之前的提问" (https://segmentfault.com/q/1010000044200118)里我就指出来了,global 样式不是这样导入的。 你这样导入的只能是 local 样式,global 样式需要你显式指定出来: - import './index.module.css' + import MyStyles from './index.module.css' ... - 按钮 + 按钮 第二你这个选择器依然写的不对: - .myButton :global(.ant-btn-primary) { + .myButton:global(.ant-btn-primary) { # 注意没有空格,从你的 DOM 结构上看显然它俩不是父子关系、而是同一个元素 background-color: red !important } *** 或者还有一种改法,你就不要用 CSS Modules: # 文件名叫 index.css,不是 index.module.css;或者你叫别的也行,只要不是 *.module.css 就可以 .myButton.ant-btn-primary { # 正常写,不需要 :global background-color: red !important; } // 改成导入 index.css 而不是 index.module.css import './index.css' // 这里 className 跟你现在的写法一样 return () => 按钮
0
0
0
浏览量0
加班使我熟睡

付费软件如何设计验证是否会员身份?

请问,付费软件的是否付费这功能是怎么设计/做的呢? 我们知道,很多付费软件如果不付费是不能使用高级功能的。 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241229/9bee019fe173440c2c2415d91ed6a77d.png) 请问下: 1. 是否有对应的付费验证的设计教程可以参考我们设计实现呢? 2. [联网功能] 比如,这里非付费会员每天可以保存1篇文章,但是我保存第2篇文章的时候,一般是怎么进行验证的,是将自己的userid传输,每次保存时候调用后端API时候,后端都进行先验证再保存吗? 3. [本地功能] 比如,功能在本地软件上,这样的验证是否会员的策略是直接获取API得到是否会员然后进行验证是否可以使用是吗?是否有更好的方法呢?总觉得这个方法不好一样,容易本地破解。
18
1
0
浏览量310
加班使我熟睡

ajax判断链接是否有效?

你本地开发是history路由模式?"'2'"这种写法是相对路径写法,会根据当前地址栏路径拼接发送,具体的可以在控制台网络中查看发送的路径是什么
0
0
0
浏览量0
加班使我熟睡

前端配置文件的正确方式?

公司里一些项目是服务于政府单位的,很多小细节的调整不是遵循上线部署流程走的。比如一些文字内容的调整,跳转链接地址的调整。为了满足速度,常常把这些可能频繁变动的信息以全局变量的方式编写在 public 中,不经过打包,方便及时响应及时调整。 比如在 index.html 注入一个 config.js 文件 (function() { var config = { name: 'segmentfault', time: '2023-9-25', url: 'https://segmentfault.com/' } window.config = config })() 这种方式有一个很大的弊端就是会把很多信息暴露出来。 请问下针对这种频繁变动的信息如何编写配置文件?以及适用大多数场景的最佳配置文件编写方式是怎样的?
17
1
0
浏览量262
加班使我熟睡

github 2FA 能脱离手机吗?

可以。 GitHub 只是要求年底前强制 2FA 了,不开启明年你就登录不上 GitHub 了。但它并没有限制 TOTP 的软件(短信验证码那种方式直接 pass 吧,目前不支持 +86,目测未来也不会支持)。 实际上你并不需要下载它那个 GitHub Mobile App,使用任意支持 TOTP 的 App 都可以。 实在懒得用手机也可以找个桌面版的 TOTP 软件,或者浏览器插件,甚至自己实现一个也行,毕竟 TOTP 协议是公开的。 比如这款开源的 "Authenticator-Extension" (https://link.segmentfault.com/?enc=MKFydRybRVvrYEukLZJaeg%3D%3D.AbaXgKpJ4v75EPBjgK%2BisWMq4sGK01fq4G0HN3Sp2nNbYcAUMVmT1mOwTIN16jnIkU74QeC%2BeUs%2BajG7AxKMpA%3D%3D): * Chrome 插件:"https://chrome.google.com/webstore/detail/authenticator/bhgho..." (https://link.segmentfault.com/?enc=%2F4niLPjwKnTlJprBRsBHtQ%3D%3D.flCy0Wx8y%2BF1MhCkbT%2FEN8JUxm40L41UAhtKZyG5DVEu9%2FZp54L%2F9OXsDNjzQhch%2FOaX8MmzlPS9nCrkHv4EUx2f404jJeYClhilYqR6kEAIolHjtvKwlhoBEJoB5m29) * Edge 插件:"https://microsoftedge.microsoft.com/addons/detail/authenticat..." (https://link.segmentfault.com/?enc=StFfC0%2B02oJRVYI1NlURjQ%3D%3D.bvsHz8YXJLvzifTHUWWKut9%2B0719w8UCMnwqdvpCdxjwD9FWIbSUNah2Y75%2F4Oiqre8mpSdqm3m8uYOd9%2FJ2VOWH8q9n%2F5RUbbDRgkigeTWoCI459%2BLH6I6KbrLkRK55D6WdCc2jXPc0RY9%2FpkAMoQ%3D%3D) * Firefox 插件:"https://addons.mozilla.org/en-US/firefox/addon/auth-helper" (https://link.segmentfault.com/?enc=j7nH20trNsQaRSfZCs1vqw%3D%3D.idN%2Be1FHon5rGxEXnNgAquqKxUc3TFoSrkA4aqGXeA7I94ol303tZ9KJ4jRX81m82n34pbn8lUgBr5v5rGatOw%3D%3D)
0
0
0
浏览量0
加班使我熟睡

我的opencv2的imread为什么不运作?

解决了. qt的debug模式下不允许使用imread,我真不知道是怎么回事.
0
0
0
浏览量0
加班使我熟睡

vue2项目启动报错?

使用 node.js 16 及以下的版本运行 vue 2 项目,可以避免 80% 以上的运行错误。
0
0
0
浏览量0
加班使我熟睡

js 匹配url正则,可匹配参数,要怎么修改?

/^(?=^.{3,255}$)(http(s)?:\/\/|ftp:\/\/)?(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*(\?.*)?$/
0
0
0
浏览量0
加班使我熟睡

element-ui中的el-card内容不换行?

你的内容是连续的英文字母吗? 像下图这样 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241214/f9508bf10584e30614cc6a6838678b84.png) 设置元素css属性"word-break: break-all;"或者 "overflow-wrap: break-word;"
0
0
0
浏览量0
加班使我熟睡

PC端没问题,移动端上报这个错,可能是什么情况?

"Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope'"
0
1
0
浏览量15
加班使我熟睡

如何根据日期字符进行串排序?

const arr = [ { name: 'AAA', date: '2023/02/03' }, { name: 'BBB', date: '2023/03/05' }, { name: 'CCC', date: '2022/02/07' } ]; console.log( // 需要输出arr里的对象, 按照date排序 );
0
1
0
浏览量17
加班使我熟睡

Nignx校验出错,请问如何解决?

这是报错信息: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/b33c61bd417a021a9f0661b25236846f.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/63767f19f002e7f3b7ebf8cd1db7f49e.png) 然后反向代理是这样配置的: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/28342074bdd4f5f2fa018d4eaa2792b4.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/4c67efd27d010eeba2e01c0b046b21dc.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/fe72ad00306043fba58719918cbe2068.png) 尝试过的方法: * 开启ssl,这样能校验成功,装载后也用不了 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/0875a6695a17875c974f420b2a0e055d.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/c6798d595af0f6de8080ae07c7b46445.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/c1cb0e1c0426f6a50979a8ee81d7a8ce.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241209/2290b469b4f8b30d0327f9d7a3cfc568.png) 请问大佬怎么处理,现在我不要开启ssl,http访问即可
0
1
0
浏览量15
加班使我熟睡

vue项目 如何修改插件源码?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241204/9bed913f28e82155f8441621badff802.png) 为什么没有输出呢?还有什么其他需要做的吗?
0
1
0
浏览量17
加班使我熟睡

请问使用vue-router与v-show分别实现选项卡有什么区别?

我们开发项目,无论是后台管理系统,还是移动应用,经常会使用到各式各样类似选项卡的切换组件,如下: 1、管理后台: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241201/e365c40239652c1764a3b16afbdc85ad.png) 2、选项卡: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241201/384ca95467263909d79f8d0eee287419.png) 3、移动端底部tabber: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241201/43c5bfc627df3c3fd268830933e51bcc.png) 问题如下: 1、实现这种类选项卡组件有2中方法:分别是 vue-router的嵌套路由 和 v-show , 请问2种实现有什么区别(个人看不出区别),来回切换时,能否缓存原本查看的内容呢?什么时候使用vue-router的嵌套路由 ,什么时候使用v-show 2、vue-router 嵌套路由,在不断切换子路由时,父路由的组件是从新加载?还是缓存了无需再次加载呢? 请问大神们,能否详细解答?谢谢!
0
1
0
浏览量16
加班使我熟睡

如何在安装 pytorch 的时候,不安装 nvidia 相关的包?

有些时候,推理只要 cpu,不需要用到 GPU,那么此时,我就不想安装 nvidia 相关的包了 但是 pip install torch 的时候,会把 nvidia 相关的包也一起安装 nvidia-cublas-cu12 12.1.3.1 nvidia-cuda-cupti-cu12 12.1.105 nvidia-cuda-nvrtc-cu12 12.1.105 nvidia-cuda-runtime-cu12 12.1.105 nvidia-cudnn-cu12 8.9.2.26 nvidia-cufft-cu12 11.0.2.54 nvidia-curand-cu12 10.3.2.106 nvidia-cusolver-cu12 11.4.5.107 nvidia-cusparse-cu12 12.1.0.106 nvidia-nccl-cu12 2.18.1 nvidia-nvjitlink-cu12 12.3.52 nvidia-nvtx-cu12 12.1.105 至于为什么会有这个需求,是因为这些 nvidia 包的体积都很巨大,打包出来的 docker image 会多3GB,浪费磁盘空间
0
1
0
浏览量26
加班使我熟睡

typescript如何解决对象动态获取属性并调用方法的类型定义?

如题 demo 如下: var obj = { aaa:{ init:function(){ console.log('aaa') } }, bbb:{ init:function(){ console.log('bbb') } } } function fn(type:string){ obj[type].init() } fn('ccc') 报错 "类型“("string")[]”上不存在属性“init”" 如何定义类型,可以保证这里正常调用?
0
1
0
浏览量14
加班使我熟睡

vue3+echart散点图?

请问大佬们,当鼠标移动echarts散点图某个点的时候,当两个点数据重合了的时候,如何能够正确的将重合的点数据全部显示出来呢? 我通过tooltip下的formatter函数这样写的,但是显示出来的数据有错误? "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241124/f83ecda7e2767686c4ab8c6736dd3a1d.png) 错误显示: "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241124/5c09bc20ad60818e78c377581456e590.png) 正确的显示应该是 BDS:5,81,33。GALILEO:5,81,33。 请大佬们指点指点,谢谢!!!
0
1
0
浏览量15
加班使我熟睡

ant form组件验证的异常表现?

失焦的时候 trigger 为blur的只有一个required 它就只判断这一个 然后判断通过了。 你可以给格式校验也加上一个trigger blur: "['change', 'blur']"
0
0
0
浏览量0
加班使我熟睡

ElementUI的el-cascade希望限制显示的宽度?

代码: {{ data.label }} 按照网上的方法设置了css样式 .el-cascader-node { max-width: 250px; } 但是不起作用,不知道是什么原因
0
1
0
浏览量15
加班使我熟睡

前端是react, 后台nginx转发, 网页加载前文件刷新有某个几百k文件会耗时一分钟,偶现,这是为啥?

前端是react, 后台nginx转发, 网页加载前文件刷新有某个几百k文件会耗时一分钟,偶现
0
1
0
浏览量18
加班使我熟睡

turnjs怎么设置翻页事件触发范围 ?

先上结论:没有现成的 API,但可以手写一个点击监听。如容器元素 "width: 100px",点击时判断其点击位置 "x" 轴位置,"x { let isLevelShift = false; let startX = 0; let startY = 0; $target .on( 'touchmove', '.book-case-item-content', e => { if (isLevelShift) { return; } e.stopPropagation(); } ) .parent() .on('touchstart', e => { isLevelShift = true; startX = e.originalEvent.changedTouches[0] .clientX; startY = e.originalEvent.changedTouches[0] .clientY; }) .on('touchmove', e => { if (!isLevelShift) { return; } const x = e.originalEvent.changedTouches[0] .clientX; const y = e.originalEvent.changedTouches[0] .clientY; // 对比 X 轴与 Y 轴偏移量,判断该操作是否为水平滑动 if ( Math.abs(y - startY) > Math.abs(x - startX) ) { isLevelShift = false; return; } const offset = e.target.clientWidth / 4; if (x - startX > offset) { $book.turn('previous'); isLevelShift = false; } if (startX - x > offset) { $book.turn('next'); isLevelShift = false; } }) .on('touchend', () => { isLevelShift = false; }); }; *** 更新: 一个简易的 Demo: $("#magazine") .turn({ display: "single", acceleration: true, gradients: !$.isTouch, elevation: 50, when: { turned: function (e, page) { /*console.log('Current view: ', $(this).turn('view'));*/ }, }, }) .turn("disable", true) .on("click", function (event) { $(this) .turn("disable", false) .turn(event.offsetX >> 1 ? "previous" : "next") .turn("disable", true); });
0
0
0
浏览量0
加班使我熟睡

我要如何检查是哪里使用过多内存?

在 windows server 2016 中通过 tomcat 部署了 springmvc 的项目,数据库是 mysql5.7 项目运行大概一周内存占用非常多,客户反映操作速度慢,下图是任务管理器中按照内存占用排序的图片: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/f7b19946e763408b92a09c4af3b27cf5.png) *** 下图是 tomcat 关于内存的设置 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/7d56559cca0d40b6924199cf7ad1c92c.png) *** 下面是 mysql5.7 的配置文件 my.ini 的完整代码 # Other default tuning values # MySQL Server Instance Configuration File # ---------------------------------------------------------------------- # Generated by the MySQL Server Instance Configuration Wizard # # # Installation Instructions # ---------------------------------------------------------------------- # # On Linux you can copy this file to /etc/my.cnf to set global options, # mysql-data-dir/my.cnf to set server-specific options # (@localstatedir@ for this installation) or to # ~/.my.cnf to set user-specific options. # # On Windows you should keep this file in the installation directory # of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To # make sure the server reads the config file use the startup option # "--defaults-file". # # To run the server from the command line, execute this in a # command line shell, e.g. # mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini" # # To install the server as a Windows service manually, execute this in a # command line shell, e.g. # mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini" # # And then execute this in a command line shell to start the server, e.g. # net start MySQLXY # # # Guidelines for editing this file # ---------------------------------------------------------------------- # # In this file, you can use all long options that the program supports. # If you want to know the options a program supports, start the program # with the "--help" option. # # More detailed information about the individual options can also be # found in the manual. # # For advice on how to change settings please see # https://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # # # CLIENT SECTION # ---------------------------------------------------------------------- # # The following options will be read by MySQL client applications. # Note that only client applications shipped by MySQL are guaranteed # to read this section. If you want your own MySQL client program to # honor these values, you need to specify it as an option during the # MySQL client library initialization. # [client] # pipe= # socket=MYSQL port=3306 [mysql] no-beep # default-character-set= # SERVER SECTION # ---------------------------------------------------------------------- # # The following options will be read by the MySQL Server. Make sure that # you have installed the server correctly (see above) so it reads this # file. # # server_type=3 [mysqld] # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 # Path to installation directory. All paths are usually resolved relative to this. # basedir="C:/Program Files/MySQL/MySQL Server 5.7/" # Path to the database root datadir=C:/ProgramData/MySQL/MySQL Server 5.7/Data # The default character set that will be used when a new schema or table is # created and no character set is defined # character-set-server= # The default storage engine that will be used when create new tables when default-storage-engine=INNODB # Set the SQL mode to strict sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" # General and Slow logging. log-output=FILE general-log=0 general_log_file="WIN-NJOD9PDUME4.log" slow-query-log=1 slow_query_log_file="WIN-NJOD9PDUME4-slow.log" long_query_time=10 # Binary Logging. # log-bin # Error Logging. log-error="WIN-NJOD9PDUME4.err" # Server Id. server-id=1 # Indicates how table and database names are stored on disk and used in MySQL. # Value = 0: Table and database names are stored on disk using the lettercase specified in the # CREATE TABLE or CREATE DATABASE statement. Name comparisons are case sensitive. # You should not set this variable to 0 if you are running MySQL on a system that has # case-insensitive file names (such as Windows or macOS). # Value = 1: Table names are stored in lowercase on disk and name comparisons are not # case-sensitive. MySQL converts all table names to lowercase on storage and lookup. # This behavior also applies to database names and table aliases. # Value = 3, Table and database names are stored on disk using the lettercase specified in the # CREATE TABLE or CREATE DATABASE statement, but MySQL converts them to lowercase on # lookup. Name comparisons are not case sensitive. This works only on file systems # that are not case-sensitive! InnoDB table names and view names are stored in # lowercase, as for Value = 1. # NOTE: lower_case_table_names can only be configured when initializing the server. # Changing the lower_case_table_names setting after the server is initialized is prohibited. lower_case_table_names=1 # Secure File Priv. secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads" # The maximum amount of concurrent sessions the MySQL server will # allow. One of these connections will be reserved for a user with # SUPER privileges to allow the administrator to login even if the # connection limit has been reached. max_connections=151 # The number of open tables for all threads. Increasing this value # increases the number of file descriptors that mysqld requires. # Therefore you have to make sure to set the amount of open files # allowed to at least 4096 in the variable "open-files-limit" in # section [mysqld_safe] table_open_cache=2000 # Maximum size for internal (in-memory) temporary tables. If a table # grows larger than this value, it is automatically converted to disk # based table This limitation is for a single table. There can be many # of them. tmp_table_size=121M # How many threads we should keep in a cache for reuse. When a client # disconnects, the client's threads are put in the cache if there aren't # more than thread_cache_size threads from before. This greatly reduces # the amount of thread creations needed if you have a lot of new # connections. (Normally this doesn't give a notable performance # improvement if you have a good thread implementation.) thread_cache_size=10 #*** MyISAM Specific options # The maximum size of the temporary file MySQL is allowed to use while # recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE. # If the file-size would be bigger than this, the index will be created # through the key cache (which is slower). myisam_max_sort_file_size=100G # If the temporary file used for fast index creation would be bigger # than using the key cache by the amount specified here, then prefer the # key cache method. This is mainly used to force long character keys in # large tables to use the slower key cache method to create the index. myisam_sort_buffer_size=232M # Size of the Key Buffer, used to cache index blocks for MyISAM tables. # Do not set it larger than 30% of your available memory, as some memory # is also required by the OS to cache rows. Even if you're not using # MyISAM tables, you should still set it to 8-64M as it will also be # used for internal temporary disk tables. key_buffer_size=8M # Size of the buffer used for doing full table scans of MyISAM tables. # Allocated per thread, if a full scan is needed. read_buffer_size=64K read_rnd_buffer_size=256K #*** INNODB Specific options *** # innodb_data_home_dir= # Use this option if you have a MySQL server with InnoDB support enabled # but you do not plan to use it. This will save memory and disk space # and speed up some things. # skip-innodb # If set to 1, InnoDB will flush (fsync) the transaction logs to the # disk at each commit, which offers full ACID behavior. If you are # willing to compromise this safety, and you are running small # transactions, you may set this to 0 or 2 to reduce disk I/O to the # logs. Value 0 means that the log is only written to the log file and # the log file flushed to disk approximately once per second. Value 2 # means the log is written to the log file at each commit, but the log # file is only flushed to disk approximately once per second. innodb_flush_log_at_trx_commit=1 # The size of the buffer InnoDB uses for buffering log data. As soon as # it is full, InnoDB will have to flush it to disk. As it is flushed # once per second anyway, it does not make sense to have it very large # (even with long transactions). innodb_log_buffer_size=1M # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and # row data. The bigger you set this the less disk I/O is needed to # access data in tables. On a dedicated database server you may set this # parameter up to 80% of the machine physical memory size. Do not set it # too large, though, because competition of the physical memory may # cause paging in the operating system. Note that on 32bit systems you # might be limited to 2-3.5G of user level memory per process, so do not # set it too high. innodb_buffer_pool_size=16G innodb_buffer_pool_chunk_size=1024M innodb_buffer_pool_instances=16 # Size of each log file in a log group. You should set the combined size # of log files to about 25%-100% of your buffer pool size to avoid # unneeded buffer pool flush activity on log file overwrite. However, # note that a larger logfile size will increase the time needed for the # recovery process. innodb_log_file_size=48M # Number of threads allowed inside the InnoDB kernel. The optimal value # depends highly on the application, hardware as well as the OS # scheduler properties. A too high value may lead to thread thrashing. innodb_thread_concurrency=9 # The increment size (in MB) for extending the size of an auto-extend InnoDB system tablespace file when it becomes full. innodb_autoextend_increment=64 # The number of regions that the InnoDB buffer pool is divided into. # For systems with buffer pools in the multi-gigabyte range, dividing the buffer pool into separate instances can improve concurrency, # by reducing contention as different threads read and write to cached pages. #innodb_buffer_pool_instances=8 # Determines the number of threads that can enter InnoDB concurrently. innodb_concurrency_tickets=5000 # Specifies how long in milliseconds (ms) a block inserted into the old sublist must stay there after its first access before # it can be moved to the new sublist. innodb_old_blocks_time=1000 # It specifies the maximum number of .ibd files that MySQL can keep open at one time. The minimum value is 10. innodb_open_files=300 # When this variable is enabled, InnoDB updates statistics during metadata statements. innodb_stats_on_metadata=0 # When innodb_file_per_table is enabled (the default in 5.6.6 and higher), InnoDB stores the data and indexes for each newly created table # in a separate .ibd file, rather than in the system tablespace. innodb_file_per_table=1 # Use the following list of values: 0 for crc32, 1 for strict_crc32, 2 for innodb, 3 for strict_innodb, 4 for none, 5 for strict_none. innodb_checksum_algorithm=0 # The number of outstanding connection requests MySQL can have. # This option is useful when the main MySQL thread gets many connection requests in a very short time. # It then takes some time (although very little) for the main thread to check the connection and start a new thread. # The back_log value indicates how many requests can be stacked during this short time before MySQL momentarily # stops answering new requests. # You need to increase this only if you expect a large number of connections in a short period of time. back_log=80 # If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and # synchronize unflushed data to disk. # This option is best used only on systems with minimal resources. flush_time=0 # The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use # indexes and thus perform full table scans. join_buffer_size=256K # The maximum size of one packet or any generated or intermediate string, or any parameter sent by the # mysql_stmt_send_long_data() C API function. max_allowed_packet=200M # If more than this many successive connection requests from a host are interrupted without a successful connection, # the server blocks that host from performing further connections. max_connect_errors=100 # Changes the number of file descriptors available to mysqld. # You should try increasing the value of this option if mysqld gives you the error "Too many open files". open_files_limit=4161 # If you see many sort_merge_passes per second in SHOW GLOBAL STATUS output, you can consider increasing the # sort_buffer_size value to speed up ORDER BY or GROUP BY operations that cannot be improved with query optimization # or improved indexing. sort_buffer_size=256K # The number of table definitions (from .frm files) that can be stored in the definition cache. # If you use a large number of tables, you can create a large table definition cache to speed up opening of tables. # The table definition cache takes less space and does not use file descriptors, unlike the normal table cache. # The minimum and default values are both 400. table_definition_cache=1400 # Specify the maximum size of a row-based binary log event, in bytes. # Rows are grouped into events smaller than this size if possible. The value should be a multiple of 256. binlog_row_event_max_size=8K # If the value of this variable is greater than 0, a replication slave synchronizes its master.info file to disk. # (using fdatasync()) after every sync_master_info events. sync_master_info=10000 # If the value of this variable is greater than 0, the MySQL server synchronizes its relay log to disk. # (using fdatasync()) after every sync_relay_log writes to the relay log. sync_relay_log=10000 # If the value of this variable is greater than 0, a replication slave synchronizes its relay-log.info file to disk. # (using fdatasync()) after every sync_relay_log_info transactions. sync_relay_log_info=10000 # Load mysql plugins at start."plugin_x ; plugin_y". # plugin_load # The TCP/IP Port the MySQL Server X Protocol will listen on. # loose_mysqlx_port=33060 我想要知道 mysql 和 java 分别是哪里占用了很多内存,或者说能不能检查出来哪个业务逻辑占用了太多内存,之后可以针对这里逻辑做优化。希望能提供解决思路、方法。
0
1
0
浏览量18
加班使我熟睡

vue 下载本地模板,路径获取不到?

我的Excel文件放到public下: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241116/00eb75051c0d8ae654d328bd8ceb9406.png) 然后方法里调用下载: downloadFile() { let a = document.createElement("a"); a.href = './static/fileTemplate.xlsx'; console.log(a.href,'href---------'); a.setAttribute('download', '文件模板.xlsx'); a.style.display = 'none'; document.body.appendChild(a); a.click(); a.remove(); }, 控制台打印出来href是这样 : "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241116/927946d5c3033772911728766b65a537.png) 下载的时候就报找不到文件 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241116/1cb35e7a19c005517308dc9f2e2a2772.png) 我觉得正常应该是这样才对: "http://localhost:9102/static/fileTemplate.xlsx" (https://link.segmentfault.com/?enc=c4o88v3vmHbW3kcRu%2FB8hA%3D%3D.HDK%2BEvxdig%2FMepFOJ8CATJ6aQOtm2cfbiDwEt8t3K6UCSXp76%2B9LiatoDh7mmlLF) 这样就可以下载到本地文件。 不知道哪里出错了,求指教!
0
1
0
浏览量17
加班使我熟睡

jsp中await特性使用?

引入"babel"和"polyfill",具体可以看看"这个" (https://link.segmentfault.com/?enc=llrtL5rbibTWxcQxx47g3w%3D%3D.oA1YDg53H59rEJU%2BtOixcMEbY2ugIsFiM%2BAPcyZmLQkR%2BAZgtFWgA3xOv1ros8fg)
0
0
0
浏览量0
加班使我熟睡

如何在TypeScript中根据对象传入的key返回这些key的推断?

想到了,使用Pick就可以了,如下: const obj = { name: 'Marcelo', age: 27, role: ['admin'] }; type ObjType = { [key in keyof typeof obj]: typeof obj[key] } const getAttr = (...attribute: Array): Pick[number]> => { const result = {}; for (const attr of attribute) { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore result[attr] = obj[attr]; } return result as Pick[number]>; }; const attr = getAttr('age', 'name'); 有更好的答案,欢迎补充!
0
0
0
浏览量0
加班使我熟睡

为什么python使用Pyinstaller打包成exe,只有spec文件?

问题描述 使用Pyinstaller将python脚本文件打包成exe,但是生成的文件夹里没有exe文件 打包使用的命令是 "pyinstaller -F -w test.py" 报错信息 Traceback (most recent call last): File "D:\Anaconda3\envs\guanji\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "D:\Anaconda3\envs\guanji\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\Anaconda3\envs\guanji\Scripts\pyinstaller.exe\__main__.py", line 7, in File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\__main__.py", line 194, in _console_script_run run() File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\__main__.py", line 180, in run run_build(pyi_config, spec_file, **vars(args)) File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\building\build_main.py", line 1019, in main build(specfile, distpath, workpath, clean_build) File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\building\build_main.py", line 944, in build exec(code, spec_namespace) File "D:\programing\python\guanji.spec", line 20, in noarchive=False, File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\building\build_main.py", line 429, in __init__ self.__postinit__() File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__ self.assemble() File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\building\build_main.py", line 590, in assemble priority_scripts.append(self.graph.add_script(script)) File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\depend\analysis.py", line 268, in add_script self._top_script_node = super().add_script(pathname) File "D:\Anaconda3\envs\guanji\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1345, in add_script contents = fp.read() + '\n' File "D:\Anaconda3\envs\guanji\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) **UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 4: invalid start byte** 问题出现的环境背景 使用anaconda创建了一个只包含需要库的环境,python版本是3.7,打包的文件编码方式是GB 2312 尝试过的解决方法 1.将文件在python的IDE中打开,在最上边,加注一行代码 # -- coding: utf-8 - - 2.将python包目录下\PyInstaller\compat.py文件中 "out = out.decode(encoding)" 修改为: "out = out.decode(encoding, errors='ignore')" 3.在打包的命令行中先输入chcp 65001 然后再输入打包命令。
0
1
0
浏览量20
加班使我熟睡

如何批量替换表格中的公式呢?

主要是替换时,Excel会校验公式。有一个取巧的办法,可以先把 = 替换为一个特定的,从没有出现的字符串。这样Excel就不会校验公式了。之后再分布把公式替换好,最后把特定的字符串换回成为 =。 如果你不介意写代码,可以试试Excel组件库,例如GcExcel,有直接可用的API进行替换,用组件库的话,可以匹配自动化的场景,可以结合自己实际的场景来取舍。 "查找和替换 - GcExcel 中文文档Java版 | 服务端高性能表格组件 - 葡萄城" (https://link.segmentfault.com/?enc=4w7yKnnArY6cnq%2BkNUVTrg%3D%3D.FhAV1kNvAVAShm3sxitGI%2BrcSsmnffnQoJkD46VTWvhKgloRdb56mrzfepM3577yXSU9NI9aWgpmrdYya1I8SQNwIDfgSTSaBX47Yre8dz9fcgpuIHB%2FYrZ57Ur5to9VOyZSKbvWIEZqSWSQLK1dZFeaLAw6wkznGu0qWlwHag3MbXEz4y7Arr29eTraw4If)
0
0
0
浏览量0
加班使我熟睡

C++中实现[]重载报错?

在visual_studio中想做一个[]重载的小练习, #include #include using namespace std; struct Person { double salary; char *name; }; class SalaryManage { private: Person *employ; int max; int n; public: SalaryManage(int Max = 0) :max(Max),n(0),employ(new Person[max]) { } double &operator[](char *Name) { Person *p; for (p = employ;p name, Name) == 0) return p->salary; p = employ + n++; p->name = new char[strlen(Name) + 1]; strcpy(p->name, Name); p->salary = 0; return p->salary; } void display() { for (int i = 0;i < n;i++) cout << employ[i].name << " " << employ[i].salary << endl; } ~SalaryManage() { delete[] employ; } }; int main() { SalaryManage s(3); s["张三"] = 2188.88; s["里斯"] = 1234.65; s["王五"] = 3200.98; cout << "张三\t" << s["张三"] << endl; cout << "里斯\t" << s["里斯"] << endl; cout << "王五\t" << s["王五"] << endl; s.display(); } 可是主函数部分显示 "image.png" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241109/a1dc5d37f95ca5f88273ba754ade3759.png) 作为C++新手,请大佬们帮忙指点一二
0
1
0
浏览量16
加班使我熟睡

为什么输出的 vsnprintf 的返回值随着执行次数不同而变化呢?

为什么输出的 vsnprintf 的返回值随着执行次数不同而变化呢? man vsnrpintf 手册上说的返回值是写入最终的字符串长度(如下截图中:the final string),但是实际测试并不是? 按文档说法:返回值应该为3; 实际测试结果:不为3,也不为10,而是14、15、16这样变化的数。 "image.png" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241109/d9aadcaed5615ab97395f9088864e382.png) void foo(const char* format, ...){ va_list ap; va_start(ap, format); int res1 = vsnprintf(NULL, 0, format, ap); printf("====res1=%d\n", res1); char buf[200] = {'\0'}; memset(buf, 0, 200); int res2 = vsnprintf(buf, 3, format, ap); printf("====res2=%d, buf=%s\n", res2, buf); //多次直行a.out,值为什么不同呢? va_end(ap); } int main() { foo("say=%d\n", 10000); return 0; } 输出: ./a.out ====res1=10 ====res2=16, buf=sa ./a.out ====res1=10 ====res2=14, buf=sa ./a.out ====res1=10 ====res2=15, buf=sa
c c++
0
1
0
浏览量19
加班使我熟睡

有没有现有的AI能完成我的图片转换为相应的画风?

请教大家,现有的什么AI工具能完成我的需求(如果有参数最好附带上,谢谢大哥们),这种风格类似手绘,但我能搜到的转手绘工具都不能满足我的需求。 小弟先谢谢大神们的解答,感激不尽! 原图↓ https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241106/6b5044fba254a823dbefe8a9961b104b.png 转换后的风格↓ https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241106/5e807cb05033b4dcd08bb310f7b3ca60.png
0
2
0
浏览量25
加班使我熟睡

Flutter打包报错:资源链接获取失败的错误?

* 核对一下Andriod Studio ,Gradle插件版本,Gradle版本是否存在兼容问题,重新指定试试 "https://developer.android.google.cn/studio/releases/gradle-pl..." (https://link.segmentfault.com/?enc=VJZV%2BEW7RAFE4Jg1Tz8IGA%3D%3D.O%2B7Dl6nwT4u0QitRe53CKtsD8%2BzOWUoYfVhFE5qdaQDA51NHWMZ1sa8gzX6UOyUohCL5wWIVoS64bWi7zbi5cfv4FGmaaCBzuFrIr7Tw14Q%3D) * 同时检查一下配置环境 flutter doctor
0
0
0
浏览量0
加班使我熟睡

在Visual Studio中引用头文件报错?

可以说明一下你的 main.cpp 、 Log.cpp 、 Log.h 的路径吗?
0
0
0
浏览量0
加班使我熟睡

解决Hbuilderx 创建 uni-app 项目,发行微信小程序时主包因uni_modules文件大超包问题?

如图:我使用Hbuilderx 创建的uni-app项目,在发行微信小程序的时候,这个uni_modules打到了主包里面,导致主包超包。请问各位大佬,这个超包的问题如何解决呢?https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241101/330941a21eba485611fff7429df6369f.png 1.我已经把uni_modules里面用不到的组件删除,现在剩下的组件都是业务需要的。 2.我尝试新创建了一个uniapp项目,主包未使用uni_modules里面的组件,但是分包的业务代码使用uniapp组件后,还是会把uni_modules打包到主包里。 3.截图是在hbuilderx中点击发行后的代码包。 4.已配置"optimization":{"subPackages":true}分包优化。 5.已经压缩代码。 各位大佬有遇到这种情况吗?请教下要怎么解决超包问题。
0
1
0
浏览量15
加班使我熟睡

用ffmpeg怎么把25个小视频组合成一个大视频?

用ffmpeg怎么把25个小视频组合成一个大视频? 每个小视频90X160px,没有声音,只有视频 5行5列 一共25个 以下代码来自网络,但是行不通,小视频没有声音,只有画面 @echo off set dirname=D:\短视频\shortvideos_small\ ffmpeg -i %dirname%1.mp4 -i %dirname%2.mp4 -i %dirname%3.mp4 -i %dirname%4.mp4 -i %dirname%5.mp4 -i %dirname%6.mp4 -i %dirname%7.mp4 -i %dirname%8.mp4 -i %dirname%9.mp4 -i %dirname%10.mp4 -i %dirname%11.mp4 -i %dirname%12.mp4 -i %dirname%13.mp4 -i %dirname%14.mp4 -i %dirname%15.mp4 -i %dirname%16.mp4 -i %dirname%17.mp4 -i %dirname%18.mp4 -i %dirname%19.mp4 -i %dirname%20.mp4 -i %dirname%21.mp4 -i %dirname%22.mp4 -i %dirname%23.mp4 -i %dirname%24.mp4 -i %dirname%25.mp4 -filter_complex "[0:v]scale=iw/5:-1[v0];[1:v]scale=iw/5:-1[v1];[2:v]scale=iw/5:-1[v2];[3:v]scale=iw/5:-1[v3];[4:v]scale=iw/5:-1[v4];[5:v]scale=iw/5:-1[v5];[6:v]scale=iw/5:-1[v6];[7:v]scale=iw/5:-1[v7];[8:v]scale=iw/5:-1[v8];[9:v]scale=iw/5:-1[v9];[10:v]scale=iw/5:-1[v10];[11:v]scale=iw/5:-1[v11];[12:v]scale=iw/5:-1[v12];[13:v]scale=iw/5:-1[v13];[14:v]scale=iw/5:-1[v14];[15:v]scale=iw/5:-1[v15];[16:v]scale=iw/5:-1[v16];[17:v]scale=iw/5:-1[v17];[18:v]scale=iw/5:-1[v18];[19:v]scale=iw/5:-1[v19];[20:v]scale=iw/5:-1[v20];[21:v]scale=iw/5:-1[v21];[22:v]scale=iw/5:-1[v22];[23:v]scale=iw/5:-1[v23];[24:v]scale=iw/5:-1[v24];[v0][v1][v2][v3][v4][v5][v6][v7][v8][v9][v10][v11][v12][v13][v14][v15][v16][v17][v18][v19][v20][v21][v22][v23][v24]xstack=inputs=25:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2|0_h0+h1+h2+h3|w0_0|w0_h0|w0_h0+h1|w0_h0+h1+h2|w0_h0+h1+h2+h3|w0+w4_0|w0+w4_h0|w0+w4_h0+h1|w0+w4_h0+h1+h2|w0+w4_h0+h1+h2+h3|w0+w4+w8_0|w0+w4+w8_h0|w0+w4+w8_h0+h1|w0+w4+w8_h0+h1+h2|w0+w4+w8_h0+h1+h2+h3|w0+w4+w8+w12_0|w0+w4+w8+w12_h0|w0+w4+w8+w12_h0+h1|w0+w4+w8+w12_h0+h1+h2|w0+w4+w8+w12_h0+h1+h2+h3;[0:a][1:a][2:a][3:a][4:a][5:a][6:a][7:a][8:a][9:a][10:a][11:a][12:a][13:a][14:a][15:a][16:a][17:a][18:a][19:a][20:a][21:a][22:a][23:a][24:a]amix=inputs=25" D:\短视频\output.mp4
0
1
0
浏览量17
加班使我熟睡

用vue2+chatGPT如何实现流式输出?

可以使用event-source-polyfill这个插件,这个需要后端来配合,可以实现流式输出
0
0
0
浏览量0
加班使我熟睡

vue2升级vue3报错,求大佬看一下?

vue2升级vue3报错 这个是package.js配置。 { "name": "vue", "version": "1.0.0", "description": "A Vue.js project", "author": "zyt", "private": true, "scripts": { "dev": "node build/dev-server.js", "start": "node build/dev-server.js", "build": "node --max_old_space_size=4096 build/build.js", "lint": "eslint --ext .js,.vue src" }, "dependencies": { "@amap/amap-jsapi-loader": "^1.0.1", "@babel/runtime": "^7.20.1", "axios": "^0.17.1", "core-js": "^2.6.12", "crypto": "^1.0.1", "crypto-js": "^4.1.1", "echarts": "^3.7.1", "echarts-liquidfill": "^3.1.0", "echarts5": "npm:echarts@5", "element-plus": "^2.4.4", "fastclick": "^1.0.6", "file-saver": "^1.3.3", "highcharts": "^5.0.14", "html2canvas": "^1.4.1", "js-cookie": "^2.1.4", "jspdf": "^2.5.1", "moment": "^2.19.2", "net": "^1.0.2", "node-sass": "^6.0.1", "nprogress": "^0.2.0", "qs": "^6.11.0", "sass-loader": "^10.3.1", "screenfull": "^3.3.1", "stompjs": "^2.3.3", "typescript": "^5.3.3", "vue": "^3.2.33", "vue-3d-model": "^1.4.1", "vue-amap": "^0.5.8", "vue-count-to": "^1.0.13", "vue-highcharts": "0.0.10", "vue-qr": "^2.2.1", "vue-resource": "^1.3.4", "vue-router": "^4.0.13", "vue-seamless-scroll": "^1.1.23", "vue3-treeselect": "^0.1.10", "vuex": "^4.0.2", "xlsx": "^0.12.3", "zrender": "^5.4.0" }, "devDependencies": { "@vue/compat": "^3.2.33", "@vue/compiler-sfc": "^3.2.33", "@vue/composition-api": "^1.7.2", "autoprefixer": "^7.1.2", "babel-core": "^6.22.1", "babel-eslint": "^7.1.1", "babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-loader": "^7.1.1", "babel-plugin-syntax-jsx": "^6.18.0", "babel-plugin-transform-runtime": "^6.22.0", "babel-plugin-transform-vue-jsx": "^3.7.0", "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-2": "^6.22.0", "babel-register": "^6.22.0", "chalk": "^2.4.2", "clean-webpack-plugin": "^4.0.0", "compression-webpack-plugin": "^1.1.11", "connect-history-api-fallback": "^1.3.0", "copy-webpack-plugin": "^6.4.1", "css-loader": "^0.28.0", "cssnano": "^3.10.0", "eslint": "^3.19.0", "eslint-config-standard": "^6.2.1", "eslint-friendly-formatter": "^3.0.0", "eslint-loader": "^1.7.1", "eslint-plugin-html": "^3.0.0", "eslint-plugin-promise": "^3.4.0", "eslint-plugin-standard": "^2.0.1", "eslint-webpack-plugin": "^4.0.1", "eventsource-polyfill": "^0.9.6", "express": "^4.14.1", "extract-text-webpack-plugin": "^2.0.0", "file-loader": "^6.2.0", "friendly-errors-webpack-plugin": "^1.1.3", "html-webpack-plugin": "^3.2.0", "http-proxy-middleware": "^0.17.3", "image-webpack-loader": "^8.1.0", "jsencrypt": "^3.0.0-rc.1", "mini-css-extract-plugin": "^1.6.2", "opn": "^5.1.0", "optimize-css-assets-webpack-plugin": "^2.0.0", "ora": "^1.2.0", "postcss-loader": "^7.0.1", "raphael": "^2.3.0", "rimraf": "^2.6.0", "sass-loader": "^10.3.1", "semver": "^5.3.0", "shelljs": "^0.7.6", "svg-sprite-loader": "latest", "terser-webpack-plugin": "^4.2.3", "uglifyjs-webpack-plugin": "^2.2.0", "url-loader": "^4.1.1", "vue-fullscreen": "^2.1.3", "vue-loader": "^16.8.3", "vue-style-loader": "^4.1.3", "vue-treeselect": "^1.0.6", "webpack": "^4.46.0", "webpack-bundle-analyzer": "^4.6.1", "webpack-cli": "^3.3.12", "webpack-dev-middleware": "^1.10.0", "webpack-hot-middleware": "^2.18.0", "webpack-merge": "^4.1.0" }, "engines": { "node": ">= 4.0.0", "npm": ">= 3.0.0" }, "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ] } 这个是webpack配置https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/73526b3254a650e18b0accd69ebb5ff1.png https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/1d7e09aaf32344526513f8fa61131520.pnghttps://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/1e3bd8fe96a01d86554c824f5ed5df6c.png 目前的目前的报错是vue-loader相关。 https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/86069679a09486f320bf42444078a12b.png https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/2735676061cab433f8abbb34c23ea9b2.png 求求大佬告知一下,什么原因,
0
1
0
浏览量211
加班使我熟睡

后端返回的id因为过大导致 精度丢失 导致前端打印显示与后端返回的数据id不一致 问题?

后端 Long.toString "https://doc.ruoyi.vip/ruoyi-cloud/other/faq.html#%E5%A6%82%E4..." (https://link.segmentfault.com/?enc=70U5Pr0UXElykLohtJpP%2Fw%3D%3D.YsERfHdK%2FeL18h6HlvWad59kbPxanzrBlNiXkXPg5n27Z%2FqIU3z%2FJTjsjoukXhqtjzDyId5MMJVLq%2FBlvu9vQRRAfWLqB0dVgO6b3w9gD9GaHOtkZnpWQTpQqNa6ruStUTwa7KmQG15CedUok1jPAitI2GNPcFsQgbwm59oCXa1QBdv9yiN4nyiaocpshrrGSK9YG6eyizqcX2AMAKxUSOkfNVRjIJMzPlmHKHgvGq4%3D) 前端 json-bigint "https://zhuanlan.zhihu.com/p/36674301" (https://link.segmentfault.com/?enc=j%2BN8XfCUijRnANP9ypVYzQ%3D%3D.aVgkbUg5piNaZ2QIsz4lYrKvYyvaBSgMR5UfidXoApllnar4WOjJ2ufiOAmOT8Ol)
0
0
0
浏览量0
加班使我熟睡

typescript解构赋值怎么指定类型?

下面有一个解构赋值,"[invoice, customers]" 中两个元素的推断类型分别是 "const invoice" 和 "const customers": const [invoice, customers] = await Promise.all([ fetchInvoiceById(id), fetchCustomers(), ]); const invoice: { amount: number; id?: string | undefined; date?: string | undefined; status?: $Enums.InvoiceStatus | undefined; customerId?: string | undefined; } const customers: { id: string; name: string; email: string; image_url: string; }[] 现在我要把下面两个类型手动指定给 "[invoice, customers]" 中对应的元素,即 "invoice" 的类型为 "InvoiceForm","customers" 的类型为 "CustomerField",语法应该怎么写? type InvoiceForm = { id: string; customerId: string; amount: number; status: 'pending' | 'paid'; }; type CustomerField = { id: string; name: string; };
0
1
0
浏览量205
加班使我熟睡

如何实现多行输入?

如何实现多行输入
0
1
0
浏览量208
加班使我熟睡

如何做文本长度逐渐变短?

https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241012/445d1cb5905b818d41563dac724c5f58.png 哪位大佬知道这种文字展示是怎么做的吗?
0
1
0
浏览量166
加班使我熟睡

如何为Vant的van-steps步骤条组件设置渐变色?

vant的van-steps步骤条组件,已激活的线条怎么设置为渐变色 求求各位大佬们!!!!真的非常感谢, vant的van-steps步骤条组件,已激活的线条怎么设置为渐变色,如图:https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241012/805b3be5bea1c5b1533c55aa5f0a3f1c.png
0
1
0
浏览量140

履历