Daily毅星
IP:
48关注数
20粉丝数
28获得的赞
工作年
编辑资料
链接我:

创作·52

全部
问答
动态
项目
学习
专栏
Daily毅星

本地开发用charles的tools下rewrite重写接口status不生效?

配置看上去没问题,我这边复现了一下,是正常的,能修改响应状态码为428。 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250111/a7ea84d779720264bd330de63fed6ad5.png) 可以试试用浏览器访问试一下,感觉可能是被webpack的proxy修改了。
0
0
0
浏览量0
Daily毅星

请问,如何对Electron做开启启动的配置呢?

请问,如何对Electron做开启启动的配置呢,官方文档好像没有说明 1、如何设置Electron应用的开机启动,在哪里可以配置? 2、我也想要在Electron应用的设置中进行配置是否开机启动,请问如何做呢?
13
1
0
浏览量301
Daily毅星

mysql 从库重启,配置失败,报错:Slave: Failed to initialize the master info structure for channel?

«系统:window 10 mysqld版本: 8.0.12» 从库中设置链接主库 reset slave; CHANGE MASTER TO MASTER_HOST='192.168.1.100', MASTER_USER='replication', MASTER_PASSWORD='EnterSecurePasswordHere', MASTER_PORT=3306, MASTER_AUTO_POSITION = 1; start slave; show slave status; 以上设置成功,数据同步也没问题,"mysql.slave_master_info","mysql.slave_relay_log_info"表中配置数据正常。 但是,一旦重启"slave",就报以下错误,"master"配置信息失效 [ERROR] [MY-010728] [Repl] Error writing master configuration. [ERROR] [MY-010729] [Repl] Error reading master configuration. [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-000029 - File '.\X1C-relay-bin-@00020.index' not found (OS errno 2 - No such file or directory) [ERROR] [MY-010605] [Repl] Failed in open_index_file() called from Relay_log_info::rli_init_info(). [ERROR] [MY-010426] [Repl] Slave: Failed to initialize the master info structure for channel ' '; its record may still be present in 'mysql.slave_master_info' table, consider deleting it. [ERROR] [MY-013123] [Repl] Slave I/O for channel ' ': Slave failed to initialize master info structure from the repository, Error_code: MY-013123 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001871 - Slave failed to initialize master info structure from the repository [ERROR] [MY-011025] [Repl] Failed to start slave threads for channel ' '. [System] [MY-010931] [Server] C:\mysql\Extensions\MySQL8.0.12\\bin\mysqld.exe: ready for connections. Version: '8.0.12' socket: '' port: 3306 MySQL Community Server - GPL. 更让我不理解的是 ,重启后马上执行 "show slave status;"显示下面信息: +----------------+---------------------------------------------------------------------------+-------------+-------------+---------------+ | Slave_IO_State | Master_Host | Master_User | Master_Port | Connect_Retry | +----------------+---------------------------------------------------------------------------+-------------+-------------+---------------+ | | 192.168.1.100 replication | | 3306 | 60 | +----------------+---------------------------------------------------------------------------+-------------+-------------+---------------+ "Master_Host" 字段中,混杂了 "master"的IP和用户名,中间有大量空格,而"Master_User"字段为空,令我不解 *** 在我google的时候,看到有人说是 "master.info"问题,但我并没有配置 "master-info-file",且mysql 8.0开始,已经默认是"master_info_repository=TABLE" 和 "relay_log_info_repository=TABLE",参考:"17.2.4.2 Replication Metadata Repositories" (https://link.segmentfault.com/?enc=pTorkpxRsHgfmE3cohOBJg%3D%3D.8WCuleBtENkNCaGw3WmIqaAUYBU6r6VSWYg8ALqWyu7CNe%2F8OufMKibTq8mfw04Qg45ZWtrEXZzz5IVggIETbVviqRquMtttVT4iArdX0EE%3D)
15
1
0
浏览量262
Daily毅星

echarts绘制断开的点。或者叫。数据不连续?

官网有这个配置,详细可查看下面例子 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250101/33adee19faf438d8f3e0fedab19b8d4c.png) "https://echarts.apache.org/zh/option.html#series-line.connect..." (https://link.segmentfault.com/?enc=X9vYY3xA%2B3HtRTh%2BaoPndA%3D%3D.vPBe969XpYetjLfgJlOP7RUqpvb02%2Bf2VR3p4Xxl4zZdOyoChPZYzbvrx24%2BxWgE%2B%2FUyMoo6MyWidEoLkQ1sdpT%2B17vxhHwAYhedK32PiFA%3D) option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, series: [ { data: [150, 230, null, 218, 135, 147, 260], type: 'line', connectNulls:false } ] };
0
0
0
浏览量0
Daily毅星

vue2表格隐藏某一列的时候固定列出现空白行?

用的是element-table 吗 是的话切换选择显示后 手动调用一下这个方法 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241229/60da6492628ac68067f958da72bc1beb.png)
0
0
0
浏览量0
Daily毅星

pinia数据持久化的问题?

pinia的数据持久化,我用了个插件pinia-plugin-persist,用了该插件后数据是持久化了,但是取的值变成了字符串,需要序列化转换一下,例如:存入对象取出时时字符串,需要再次转换为对象才能使用,有没有什么好的方法,不用每次取值都转换一下?
15
1
0
浏览量397
Daily毅星

域名过期,ssl证书有效,如何防止被攻击?

https是需要证书的,如果我申请的一个证书,申请通过后域名过期被其他人购买并搭建https服务,那我的证书是否可用,没有任何一个检测机制来检验我的证书是否不可信,那我是否相当于伪造了一份受信任的并且是对应网站的证书用来中间人攻击,拿这种情况应该如何防范呢
13
1
0
浏览量310
Daily毅星

忘记密码提示这个怎么弄?

忘记 密码 amh amh-7.0 admin change_amh_password new_pass 提示下面的这个,怎么重新创建amh_uesr https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241221/a30ecbe9b06be95f8c07f107e2e92655.png
amh
5
1
0
浏览量340
Daily毅星

原生css能否实现这样的效果?

可以使用 content 计数器 ,样式可以自行调整,仅供参考 css .list { counter-reset: index; } .item::before { content: counter(index); counter-increment: index; display: inline-block; width: 20px; height: 20px; background-color: red; color: #ffffff; text-align: center; border-radius: 100%; } html ADHASKJ XNAS CSDLVL result "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241219/dd1ff0e0b12214d53dc1b702905508dc.png)
0
0
0
浏览量0
Daily毅星

浏览器控制台 js打断点,指定的位置打不上断点,一打就跳到其他地方了,这是什么原因?

"breakpoint.gif" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241219/e804a198e9283adfeccdafa45a140c46.png) 这个断点一打就跳到其他地方了,这是什么原因?
7
1
0
浏览量318
Daily毅星

如何css样式设置,才能解决展开收起侧边栏时,页面内容不会超前伸?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241215/c4a115d3a0d906bed0e72e3919dbaa5a.png) layout布局 layout css .menu { height: 100%; left: 0; top: 0; bottom: 0; position: fixed; background-color: #112f50; /deep/ .el-menu { border-right: none; } } .content { padding-left: 200px; transition: all .3s; } .active { padding-left: 64px; } content 布局 {{ nowTime }} | content css .container { background-color: #f5f5f5; .header { background: #242f42; height: 50px; line-height: 50px; width: 100%; .icon { font-size: 30px; float: left; i { font-weight: 500; border-left: 0; color: #ffffff; text-align: center; box-sizing: border-box; outline: 0; cursor: pointer; // transition: all 0.1s cubic-bezier(0.645, 0.045, 0.355, 1); padding-left: 12px; } } .header-right { font-size: 12px; text-align: right; padding-right: 20px; .line { font-size: 12px; color: #f5f5f5f5; padding: 10px; } .exit { float: right; position: relative; height: 50px; width: 30px; i { font-size: 18px; top: 50%; transform: translateY(-50%); position: absolute; right: 0; } } } }
0
1
0
浏览量12
Daily毅星

小程序开发工具快速二维码编译?

微信小程序开发工具快速二维码编译跳转的页面是指定页面?还是怎么弄的 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241214/55da34871ce72350c5733f34126e1d59.png) 我发现我们公司的通二维码编译跳转到了这个页面 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241214/4b304a77bf41a33e7d390b2f60dd45dd.png) 这个页面路径需要自己设置吗? 小程序模拟器上的页面路径却不是这个jump的路径 而是其他的路径 pages/login/login-check/login-check
0
1
0
浏览量14
Daily毅星

swiper react要移除了?

"https://swiperjs.com/react" (https://link.segmentfault.com/?enc=E6S6ehoGsqxQzdfCGAuj8w%3D%3D.rTTrkFZLJn1uLHCQNNRCNj0duwudgZjaXbQBdktKlfU%3D) "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241212/c416e11510a95cf0010d6c97b2d6ff3a.png)
0
1
0
浏览量16
Daily毅星

在国内做Github 开源推广有什么好方式呢?

翻译了一篇文章("增长秘笈" (https://segmentfault.com/a/1190000044296420)),但是介绍的都是国外的经验,如何在国内做呢?
0
1
0
浏览量19
Daily毅星

明明下载了npm模块但是提示This dependency was not found?

可能因为网络原因导致下载的包存在问题,试试把 "node_modules" 删了重新 "npm install"
0
0
0
浏览量0
Daily毅星

php怎么生成一个弹窗,弹窗的内容为一个form表单?

php怎么生成一个弹窗,弹窗的内容为一个form表单?
php
0
1
0
浏览量13
Daily毅星

vue2插槽里的默认内容没有显示,这是为什么?

里面是不是嵌套了一个slot?使用template和v-slot: 点击上传 只能上传word、pdf、excel、jpg、png等文件格式,单个文件不超过100M 孙子组件-孙子组件.vue示例: 我是名为tip的默认插槽内容
0
0
0
浏览量0
Daily毅星

sshpass和ssh实现端口转发时命令怎么写?

要使用 "sshpass" 和 "ssh" 来实现端口转发,你可以使用以下命令语法: sshpass -p '密码' ssh -L 本地端口:目标主机:目标端口 用户名@目标主机 以下是命令参数的解释: * "sshpass":这是一个工具,用于提供密码给 "ssh",以便自动登录而不需要手动输入密码。 * "-p '密码'":用于指定密码,你需要将 "'密码'" 替换为你实际的密码。 * "ssh":用于建立 SSH 连接。 * "-L":表示本地端口转发。 * "本地端口":是你要绑定的本地端口号,可以是你选择的任何未被占用的端口号。 * "目标主机":是你想要连接到的远程主机的主机名或IP地址。 * "目标端口":是远程主机上你想要访问的服务的端口号。 * "用户名":是你在远程主机上的用户名,用于登录。 通过执行上述命令,你将在本地主机上创建一个监听指定本地端口的 SSH 通道,所有传入该端口的流量都将被转发到目标主机的指定端口上。这通常用于建立安全的隧道,以便在本地主机和远程主机之间传输数据或访问远程服务。请确保你已经安装了 "sshpass" 工具,或者可以使用其他方式实现无密码登录(如SSH密钥对)来提高安全性。
0
0
0
浏览量0
Daily毅星

excel导入数据?

直接导入就行了,几万条又不多。 你这个三张数据表 用户表{UID、姓名、年龄、性别} 考试设定表{自增考试ID、考试名} 成绩表{自增ID、UID、考试ID、成绩}
0
0
0
浏览量0
Daily毅星

请教复杂的卡片样式css编写?

可以clip-path的path路径来实现这种形状。path路径和SVG的路径命令一样。 以下是一个供参考的实现。 效果如图: "卡片" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241130/6f46be3af27023877d157f4c0552663f.png) 实现的关键是那个clip-path剪切路径。其中路径命令M是移动,L是划线,A是椭圆曲线,z是闭合。 body { background-color: rgb(233, 230, 230); } .container{ position: relative; width: 300px; height: 150px; } .card { width: 100%; height: 100%; border-radius: 10px; background-color: white; clip-path: path("M 215, 8 A 10 10 90 0 0 205 0 L 0 0 L 0 150 L 300 150 L 300 40 A 10 10 90 0 0 290 30 L 230 30 A 10 10 90 0 1 220 22 z"); z-index: 1; position: relative; } .tag { width: 90px; height: 30px; border-top-right-radius: 10px; background-color: red; color: white; position: absolute; right: 0; top: 5px; z-index: 0; text-align: center; } .title { font-size: 18px; font-weight: bold; padding: 10px; } .content { padding: 10px; } 产品生产填报 内容 未完成
0
0
0
浏览量0
Daily毅星

spring的配置类没有import为什么能使@bean生效?

因为它的类上有@Configuration注解呀,这声明了它是一个配置类,spring会自己扫描这个配置类里面使用@bean注解返回一个对象的方法,往spring容器里注入bean
0
0
0
浏览量0
Daily毅星

这个对象数组怎么合并呢?

let res = list.reduce((arr, item) => { let target = arr.find(citem => citem.name == item.name) if(target){ target.value += item.value }else{ arr.push({...item}) } return arr }, [])
0
0
0
浏览量0
Daily毅星

vue项目不使用iframe的情况下,将另一个vue的dist包引入到当前项目中?

直接丢项目里处理不行吗
0
0
0
浏览量0
Daily毅星

手机开启ftp远程管理,Mac笔记本只能拷贝手机上的文件,但是不能把Mac上的文件拷贝到手机上,怎么破解呢?

本地网络跨设备传输文件,可以使用这个工具 "https://github.com/localsend/localsend" (https://link.segmentfault.com/?enc=NBV1rHGfYGXv8Sjfmz5Mlg%3D%3D.FWVA9jRKTVNNyo1bjgn3Xdk%2F5sadGgRSGsXkhNC5IIADJNQC%2BQx7II48adv%2BTZEW)
0
0
0
浏览量0
Daily毅星

Element Plus侧边栏折叠时,主内容区的子组件如何自动占满父容器?

弹性很好解决啊,需要撑满的那部分容器flex: 1就行了 //主要内容区 ** **
0
0
0
浏览量0
Daily毅星

如何在无网络情况下离线安装Docker和Node.js?

docker 没有网络的话怎么安装nodejs、mysql等? 期望的结果:离线使用docker 安装各需要软件
0
1
0
浏览量14
Daily毅星

如何解决 ECharts 5.4.3 geo3D 平移问题?

按鼠标中间可以平移
0
0
0
浏览量0
Daily毅星

公共API的appSecret 是怎么存储的, 怎么保证和用户密码类似的安全性?

也可以像密码一样进行两层md5 + salt,进行存入数据库,因为可以不需要进行逆解析。像微信公众号的appSecret 直接重置,除了生成的时候能看到,后面就只能直接重置了
0
0
0
浏览量0
Daily毅星

通过`webpack`打包为esm包,`npm link`后包空对象,请问是怎么回事?

找到解决办法了,esm,导出的方式为"export {}" "https://zhuanlan.zhihu.com/p/40733281" (https://link.segmentfault.com/?enc=r5%2BSgKU0rIM1ubVxte%2FR7w%3D%3D.Tcr7KAytXi%2FHa%2BmKTUDtL341C4viBmP03%2BnVmjqgmAeg1Ff8C8bT1qDhZhLFCSiG)
0
0
0
浏览量0
Daily毅星

请求帮忙解决Python编程中提示路径错误文档不能写入的问题?

盘符后面的路径分隔符漏了, d:/ANZHUANG/PYTHON/output/
0
0
0
浏览量0
Daily毅星

springboot 3 如何将 application.properties 打包在 war 包之外,并部署到 tomcat 中 ?

springboot 3 如何将 application.properties 打包在 war 包之外,并部署到 tomcat 中 在 开发环境中,把 application.properties 放到项目根目录的 config 目录下,打包的时候确实不带 application.properties 了, 但部署到 tomcat 时, application.properties 应该怎么弄
0
1
0
浏览量14
Daily毅星

哪有electron的最新的教程?

看"官方文档"就行了 "https://www.electronjs.org/zh/docs/latest/" (https://link.segmentfault.com/?enc=adHUs3pfb0xDTR%2FeOOqogw%3D%3D.VMpwTh7v09vNXdbkpmDauOkjHL4Ii%2FUUoMy7%2BHQutGti%2BFEOgxsldDvZ2Y0I6YbW)
0
0
0
浏览量0
Daily毅星

ehcarts 实现星空图 半径轴显示?

星空图如何实现由内到外半径轴的数值大小是从90-0显示的? function SkyMap() { let MyChart = echarts.init(starChartMap.value) // 角度轴 const angleAxisData = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360] //半径轴 const radiusAxisData = [90, 80, 70, 60, 50, 40, 30, 20, 10, 0]; // 数据 [半径轴,角度轴,显示数据] const GPSData = [[9.0000000005, 250, 50], [90, 285, 5], [50, 122, 5], [50, 175, 81], [3.0000000063, 330, 88]] const BDSData = [[60, 56, 17], [30, 310, 32], [60, 188, 76], [50, 75, 81]] const GLONASSData = [[20, 300, 53], [70, 180, 65], [90, 52, 76], [40, 133, 89], [50, 15, 81]] const GALILEOData = [[20, 20, 27], [80, 125, 152], [50, 5, 81]] let option = { // 背景色 backgroundColor: { type: 'radial', x: 0.45, y: 0.5, r: 0.5, colorStops: [{ offset: 0.8, color: '#a349a3' // 起始颜色,设置为透明色005288 }, { offset: 0, color: '#eea2ee' // 中间颜色3da5eb }, { offset: 0.8, color: '#ffffff' // 结束颜色,设置为透明色 }] }, // 图例 legend: { orient: 'vertical', left: '5%', }, polar: { center: ['45%', '50%'] }, // 提示框 tooltip: { trigger: 'axis', formatter: (params: any) => { var htmlF = ''; params.forEach((item: any, index: number) => { // 是否为第一个元素,如果不是则不显示item.axisValue(角度轴) if (index === 0) { // htmlF += `${item.axisValue}.00${item.marker}${item.seriesName} : ${item.data[0] + ',' + item.data[1] + ',' + item.data[2]}`; htmlF += `卫星信息:${item.marker}${item.seriesName} : ${item.data[0] + ',' + item.data[1] + ',' + item.data[2]}`; } else { htmlF += `${item.marker}${item.seriesName} : ${item.data[0] + ',' + item.data[1] + ',' + item.data[2]}`; } }); return htmlF; }, axisPointer: { type: 'cross' } }, // 角度轴 angleAxis: { type: 'value', data: angleAxisData, max: 360, splitLine: { show: true, lineStyle: { color: '#e4e0e0', type: 'dashed' } }, axisLabel: { color: '#575454' // 设置字体颜色为红色 } }, // 半径轴 radiusAxis: { type: 'value', data: radiusAxisData, // minInterval: 0, min: 90, max: 0, splitLine: { show: true, lineStyle: { color: '#e4e0e0' } }, axisLine: { show: false }, axisLabel: { color: '#575454' // 设置字体颜色为红色 } }, // 数据 series: [ // GPS { name: 'GPS', type: 'scatter', color: 'blue', coordinateSystem: 'polar', data: GPSData, // symbolSize: function (val: any) { // return val[0] * 0.5; // } label: { normal: { show: true, formatter: '{@value}', position: 'inside', textStyle: { color: '#ffffff', fontWeight: 'bold', fontSize: 13 } } }, symbolSize: 20 }, // BDS { name: 'BDS', type: 'scatter', color: 'red', coordinateSystem: 'polar', data: BDSData, label: { normal: { show: true, formatter: '{@value}', position: 'inside', textStyle: { color: '#ffffff', fontWeight: 'bold', fontSize: 13 } } }, symbolSize: 20 }, // GLONASS { name: 'GLONASS', type: 'scatter', color: '#e6a23c', coordinateSystem: 'polar', data: GLONASSData, label: { normal: { show: true, formatter: '{@value}', position: 'inside', textStyle: { color: '#ffffff', fontWeight: 'bold', fontSize: 13 } } }, symbolSize: 20 }, // GALILEO { name: 'GALILEO', type: 'scatter', color: '#67c23a', coordinateSystem: 'polar', data: GALILEOData, label: { normal: { show: true, formatter: '{@value}', position: 'inside', textStyle: { color: '#ffffff', fontWeight: 'bold', fontSize: 13 } } }, symbolSize: 20 }, ] }; MyChart.setOption(option); let autoHeight = 10 * 50 + 100; MyChart.getDom().style.height = autoHeight + "%"; MyChart.resize(); } "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241013/a0d630fd38c1b1c1673de8b0304f0185.png) 目前我随便怎么修改 由内到外都是从0-90的
0
1
0
浏览量116
Daily毅星

vue 无法获取到template中的dom元素?

v-if="!initLoading && !loading" 你的 "initLoading" 和 "loading" 数据在渲染完成后是什么情况,如果这个条件是 "false" 那确实没有渲染出来呀
0
0
0
浏览量0
Daily毅星

typescript 中如何推断剩余参数的类型?

ts只能做静态类型检查; 这里只能用泛型处理一下; export function defineUnitTest any>( name: string, fn: F, source: Parameters, expected: ReturnType, ) { } declare function twoSum(nums: number[], target: number): number[]; defineUnitTest('abc', twoSum, [[1, 2], 1], []) «"Parameters" 和 "ReturnType" 是TS内置的工具类型,获取函数的参数类型和返回值类型的»
0
0
0
浏览量0
Daily毅星

怎么把图片传到 github 并在 README.md 引用显示?

编辑readme.md这个文件,在下方可以看到 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241009/5a65b517e5105164df99b78282dc3aa3.png) 这个就上传附件和图片的
0
0
0
浏览量0
Daily毅星

Qt Creator12社区版在子目录项目中创建子项目时“作为子项目添加到项目中”选项为灰色,不可选择如何解决?

Qt Creator12社区版在子目录项目中创建子项目时“作为子项目添加到项目中”选项为灰色,不可选择 我用的IDE是Qt Creator12社区版,Qt版本是6.5。Linux中用Qt Creator12社区版,Qt版本5.15同样不行。 以下图片是我创建子项目的过程 "图1" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/0961cb73494ab7c5d70271f5e0b7a04b.png) "图2" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/7eb366faa3404ed48b58dcdb92bcc0e9.png) "图3" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/5883dd28fadbc4e879523f4013a54d83.png) "图4" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/5d04aa2af54f1c2bd6df82ff0e34b72c.png) "图5" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/37abefafc43448318ac64607262e8f0b.png) "图6" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/a8d4321a7a47d037f68ec46e6e377f22.png) "图7" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/42e3768594cbfd269524bfa67f8977e2.png) "图8" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/86293ea34eb37b32653a4ae8d668d381.png) "图9" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/3796618f6b8705a77dc03af7ec6c351b.png) 图9显示“作为子项目添加到项目中”选项为灰色,不可选择 "图10" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/119a783b44106fa45f05fbfc1ac1079d.png) 图10显示要创建的子项目没有在总项目下 通过搜索找到了"其他人创建子项目" (https://link.segmentfault.com/?enc=FMd0QwOaEN%2BHtxA7gM9arg%3D%3D.BKnMToBuxBcrHdLpTX4OxKdwQn7dJfOq1eri2TAtTCBfIk3yhIf3z6yONMzKXJ%2BQDy6noKO7pL9GumzTHbIJkQ%3D%3D)的方法,他的图11中显示“作为子项目添加到项目中”选项卡是可选的如图11所示 "图11" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/84f913aa453777bbab32f0d90bb5af2b.png) 我如果在总项目下通过右键选择“新子项目”再选择“子目录项目”创建出的子项目就是正常的,过程如图12-15所示 "图12" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/572e0c17181cce298b2a00621d40e1ba.png) "图13" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/84d1bac7e4f070824f4a00b968154c58.png) "图14" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/e19b48942677e36f1edd09cbf694bb42.png) "图15" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/d940f6da20c5a7bb9377e905ca403bed.png) 我这边的无法创建成功的原因出在了哪里了呢?是不是因为我是社区版,还是其他原因?
0
1
0
浏览量179
Daily毅星

理解Java String类equals方法的内部逻辑?

在"这里" (https://link.segmentfault.com/?enc=bxbybZquw5u2RhlvGUnoEw%3D%3D.uiUUCy9F9CxNbFum2x1CNU799HjmUUvZiu56v8mwfkiQWQ38QZwH4NMtHjFALh0sihBa5rnvyNXA%2BaKh1fbAE4I8A3%2FPZen7jJocsKQgS9CBR2fp5hfD1Xzw8gjoqe64yW06NkL6wMXXH%2FsbdqOGmw%3D%3D)有完整的 String 源码(好像是 JDK13 的)。 很容易搜索到 COMPACT_STRINGS 的定义和说明: /** * If String compaction is disabled, the bytes in {@code value} are * always encoded in UTF16. * * For methods with several possible implementation paths, when String * compaction is disabled, only one code path is taken. * * The instance field value is generally opaque to optimizing JIT * compilers. Therefore, in performance-sensitive place, an explicit * check of the static boolean {@code COMPACT_STRINGS} is done first * before checking the {@code coder} field since the static boolean * {@code COMPACT_STRINGS} would be constant folded away by an * optimizing JIT compiler. The idioms for these cases are as follows. * * For code such as: * * if (coder == LATIN1) { ... } * * can be written more optimally as * * if (coder() == LATIN1) { ... } * * or: * * if (COMPACT_STRINGS && coder == LATIN1) { ... } * * An optimizing JIT compiler can fold the above conditional as: * * COMPACT_STRINGS == true => if (coder == LATIN1) { ... } * COMPACT_STRINGS == false => if (false) { ... } * * @implNote * The actual value for this field is injected by JVM. The static * initialization block is used to set the value here to communicate * that this static final field is not statically foldable, and to * avoid any possible circular dependency during vm initialization. */ static final boolean COMPACT_STRINGS; static { COMPACT_STRINGS = true; } 这一段说明大致上可以看明白,如果 "COMPACT_STRINGS" 是 "false",那 "value" 固定是按 UTF16 进行编码的。而且,大致可以猜到跟 "coder" 相关。 然后关于 "coder",可以找到对应的源码 /** * The identifier of the encoding used to encode the bytes in * {@code value}. The supported values in this implementation are * * LATIN1 * UTF16 * * @implNote This field is trusted by the VM, and is a subject to * constant folding if String instance is constant. Overwriting this * field after construction will cause problems. */ private final byte coder; 其实就两个值,分别表示 "LATIN1" 和 "UTF16"。Java 的字段和函数(方法)是可以同名的,所以除了字段 coder 外,也可以找到函数 coder()。这个就很好理解了: byte coder() { return COMPACT_STRINGS ? coder : UTF16; } 那么这句话就好理解了: (!COMPACT_STRINGS || this.coder == aString.coder) 如果 "COMPACT_STRINGS == false",那就是按 UTF16,继续看下一个条件。如果这个条件不成立,就要看 "coder" 是否相等,如果不等,那直接判“否”。这里如果不好理解,可以自己手写代码,把这个逻辑判断拆开来理解。 boolean flag = false; if (!COMPACT_STRINGS) { flag = true; // 根据 COMPACT_STRINGS 的说明,这种情况下使用 UTF16,忽略 coder 值 } else if (this.coder == aString.coder) { flag = true; // 说明 coder 一致 } 然后下一个条件,"StringLatin1.equals(value, aString.value)",直接使用 Latin1 编码规则来对字符串的内部数据 "value" 来进行比较。至于 value 是什么,代码里也很清楚的写了,就是用来存储字符的。 /** * The value is used for character storage. * * @implNote This field is trusted by the VM, and is a subject to * constant folding if String instance is constant. Overwriting this * field after construction will cause problems. * * Additionally, it is marked with {@link Stable} to trust the contents * of the array. No other facility in JDK provides this functionality (yet). * {@link Stable} is safe here, because value is never null. */ @Stable private final byte[] value; 所以整个比较的逻辑就出来了 1. 先判断是不是字符串,如果不是,那前提无效,比较失败 2. 判断是否相同的 coder(COMPACT_STRINGS 的值间接影响 coder 一致比较),如果不是,前提不足,比较失败 3. 相同 coder 的情况下,比较内部数据是否一致,决定最终的比较结果 *** «2024-03-03 17:33:32 补充回答评论“如果 COMPACT_STRINGS == false,那就是按 UTF16”,但是在jdk13这个源码中,只用了StringLatin1.equals,utf16是如何进行比较的?» UTF16 如何进行比较我,说实话我也没明白。不过只要确定了编码规则一样,而且 StringLatin1 是按字节进行对比的话,那其实并不需要关注它本身是什么编码规则。毕竟按字节对比是最底层的方法。当然前提是去看 StringLatin1 代码看看他的实现是不是跟假设的一样。 «是循环运行了很多次,但它本质上是return,并没有什么循环语句,为啥会循环运行? 在断点debug的时候,发现"a".equals("a"),传递的Object anObject参数是GBK,请问这又是为什么» 并不是循环,如果在 ""a".equals("a")" 的时候发现了需要比较的是 ""GBK"",那说明在比较的过程中有编码的比较。这里产生的比较似乎只有在 "StringLatin1.equals" 中才会发生。所以到底是怎么回事,可能还是要看看 "StringLatin1" 的源代码。另外,既然 DEBUG 跟踪了,那可以看看调用栈,并且在调用栈中逐级去查找调用点的代码。
0
0
0
浏览量0
Daily毅星

echarts图例增加滚动条和标题?

echarts图例增加滚动条和标题 https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241009/01a639a76018912596612ed7e30d1120.png,echarts图例是canvas画的如何加滚动条和图例呢?
0
1
0
浏览量166
Daily毅星

vscode 废弃的扩展如何重新启用?

1.先把现有的插件删干净了 2.到插件市场下载历史版本: "https://marketplace.visualstudio.com/items?itemName=Vue.vscod..." (https://link.segmentfault.com/?enc=iwFO1mqZ61Akop8QlDO99w%3D%3D.2dI4D5Cdc8tLruLXWK8QkFfoDjHIKmnTnhSGJw8kWgUjnDfy%2F3bPSHDv9jJTj4U149eWT3xaRhrBEGwR7TaThAT0aXA3V2hgrSgr9JPd6GcXADxEibmygx9TxkEq5UTSVjOxCH8r4SxUSZRuzJFypg%3D%3D) 3.点击这里,选择你下载好的插件即可 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241007/ee1686415e0e502a72ed3582d8d01447.png)
0
0
0
浏览量0
Daily毅星

vue3+electron 如何做到本地化?

我的项目目录如下: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/6c699567a32426e12500782597886a7f.png) 其余 electron 为应用 main.js 主进程存放目录,dist、dist-electron 分别为 vue 的打包目录和 electron 的打包目录 之前我都是将 dist 上传到服务器,后 electron 中通过访问网络地址进行展示操作 但如今客户要求应用本地化,应该怎么做呢? 是将 electron 中的 "mainWindow.loadURL()" 指向本地 dist 文件? 还是在 electron 中开启本地 http 服务,之后服务指向本地 dist 文件? 而且我现在是打包的两个文件,是否是将 dist 复制到 electron 文件夹后,在进行应用打包? 我有点想不明白,还望指点迷津,谢谢! *** 我已通过上面提到的第三种方式成功打包,并正常显示,但是原点击功能失效在点击时候报错 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/7a4e518fa7db60fdd8d7daf670c647fe.png)
0
1
0
浏览量171
Daily毅星

这个网页的动图动画特效名称叫啥?

各位大佬们帮帮忙,下面这个网页在奖品中间一闪一闪的粒子特效叫啥名,有具体源码地址更好,谢谢大家。 https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/a09f3487aa0d7d57cf4e93ebfdccd9f7.png "https://wall.myhudong.cn/screen#/draw_pool?acid=XOyLWMsRNLDls5V5kw&l=a" (https://link.segmentfault.com/?enc=6c9zmqw%2Fnr2K3USML4427A%3D%3D.ybEc7YZh6kcunz3bOyImaTZjCAHPx4tLZ55rAAVbIWw5g0jKJZVEC89y3NF6106M8dbFycCErzb5QXF%2Bxp%2FAEUQ%2B8ninLmSYFiLEjU73IZs%3D) 尝试搜索了很多网站,可能是关键词问题,希望大家帮帮忙
0
1
0
浏览量194
Daily毅星

vue3内置组件可以绑定ref吗?

需要在挂载后获取 "ref" 值 import { ref, onMounted } from 'vue' import Comp from "./Comp.vue" const r = ref() onMounted(()=>{ console.log(r) })
0
0
0
浏览量0
Daily毅星

uniapp 微信小程序,通过手机号一键登录之后,登录状态过期如何实现静默登录?

uniapp 微信小程序,通过手机号一键登录之后,登录状态过期如何实现静默登录 一键登录 /** 手机号 */ const decryptPhoneNumber = (value) => { let phoneCode = value.detail.code uni.login({ provider: 'weixin', success: async (res) => { let openCode = res.code const res2 = await wxLogin(phoneCode, openCode) uni.setStorage({ key: 'token', data: res2.data.token, }); uni.setStorage({ key: 'phone', data: res2.data.phone, }); isLogin.value = true phone.value = res2.data.phone } }); }
0
1
0
浏览量162
Daily毅星

vue 或者是 nuxt 是否有类似 react 的 Server Component 功能?

react 的 nextjs 支持 Server Component 功能,vue 相关的库有没有类似的实现?
0
1
0
浏览量137
Daily毅星

自从vue2.7.16更新后,项目依赖下载就出问题了怎么办,不更新node有啥解决办法吗?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241004/738ee6c4b7a02c950787033aaff5c54e.png)
0
1
0
浏览量111
Daily毅星

如何解析html中的路径得到最终的url呢?

如何解析html中的路径得到最终的url呢? 访问"http://localhost:3000/dist/index.html" 这里的"index.html"会通过"script"和"link"标签导入需要的"js"和"css"。 浏览器解析到这段html时,会发送两个http请求,url为 http://localhost:3000/assets/index-BgnkCtKv.js http://localhost:3000/assets/index-Dm30hxWm.css 为什么不是 http://localhost:3000/dist/assets/index-BgnkCtKv.js http://localhost:3000/dist/assets/index-Dm30hxWm.css 如果我将地址改为相对地址的形式"./assets...",得到的url还是没有变化。 我使用""serve"" (https://link.segmentfault.com/?enc=rgIjISYBIobzF0cXLPLfxg%3D%3D.q%2BVO4BfadCcEe0gCs6GCIDEAb9ZRTONAXTEcMQyTfZzJjKCoQYjvQ868FyCbrh6u)这个静态服务器的时候,使用了"./assets.."或者"assets/.."这种相对地址形式,最终的"url"依然为"/assets...."。 但是我使用""servor"" (https://link.segmentfault.com/?enc=k1YsV0Z2lBka8Vaqgj%2Fn2w%3D%3D.CYYzeVmvSAyiwCTLxwENctt55izTGqMPG6ALeOFmoqCrGW8U5MFXJ5Km%2BAichkoa)这个静态服务器的时候,被解析为"/dist/assets..."。 解析的工作不是在浏览器上进行的吗?和使用什么静态服务器有什么关系?上面的行为让人匪夷所思。 我在"stacblitz" (https://link.segmentfault.com/?enc=dQi%2FKdp7r%2FpRMCgwoNC7Dw%3D%3D.tsuW2paLCh5ZbtLCcFSl4uGcbSHVU3mKzdWP6qTIeoaTJcvp0LkLMYknllO8M%2FB6aDODQanhqcP8B0R6V7K%2B7g%3D%3D)上复现了该问题 * 执行"npm start"(使用"servor"作为服务器),访问"/dist/index.html"成功。 * 执行"npm run dev"(使用"serve"作为服务器),访问"/dist/index.html"报错("/index.css"没不存在)。
0
1
0
浏览量141
Daily毅星

这种UE加密文件有解密的方法吗?

你还要知道密钥,带密钥的加密,很难破解 看这个代码 let a = 1; let b = 2; console.log(a + b); 加密过后 const _0xf15c04 = _0x187e; (function (_0x396a13, _0x5ad26c) { const _0x28d0c2 = _0x187e, _0x5a47c5 = _0x396a13(); while (!![]) { try { const _0x2f552b = parseInt(_0x28d0c2(0x1ad)) / 0x1 + (-parseInt(_0x28d0c2(0x1a5)) / 0x2) * (parseInt(_0x28d0c2(0x1a2)) / 0x3) + -parseInt(_0x28d0c2(0x1aa)) / 0x4 + -parseInt(_0x28d0c2(0x1af)) / 0x5 + parseInt(_0x28d0c2(0x1a9)) / 0x6 + -parseInt(_0x28d0c2(0x1a6)) / 0x7 + (-parseInt(_0x28d0c2(0x1ac)) / 0x8) * (-parseInt(_0x28d0c2(0x1a3)) / 0x9); if (_0x2f552b === _0x5ad26c) break; else _0x5a47c5['push'](_0x5a47c5['shift']()); } catch (_0x105ff3) { _0x5a47c5['push'](_0x5a47c5['shift']()); } } })(_0x9158, 0xaab2b); const _0xfb2da3 = (function () { let _0x15a21a = !![]; return function (_0x302b0c, _0x2137c2) { const _0x15f07e = _0x15a21a ? function () { if (_0x2137c2) { const _0x4441b7 = _0x2137c2['apply'](_0x302b0c, arguments); return (_0x2137c2 = null), _0x4441b7; } } : function () {}; return (_0x15a21a = ![]), _0x15f07e; }; })(), _0x1eb508 = _0xfb2da3(this, function () { const _0x2b4d0e = _0x187e; return _0x1eb508[_0x2b4d0e(0x1ae)]() [_0x2b4d0e(0x1a8)](_0x2b4d0e(0x1a7)) [_0x2b4d0e(0x1ae)]() [_0x2b4d0e(0x1ab)](_0x1eb508) ['search'](_0x2b4d0e(0x1a7)); }); function _0x187e(_0x14704a, _0x1028c8) { const _0xd77a5a = _0x9158(); return ( (_0x187e = function (_0x1eb508, _0xfb2da3) { _0x1eb508 = _0x1eb508 - 0x1a2; let _0x915831 = _0xd77a5a[_0x1eb508]; return _0x915831; }), _0x187e(_0x14704a, _0x1028c8) ); } _0x1eb508(); let a = 0x1, b = 0x2; console[_0xf15c04(0x1a4)](a + b); function _0x9158() { const _0x51cf10 = [ 'log', '40270otQfWW', '7613935CJdSHe', '(((.+)+)+)+$', 'search', '3769260eAQSJE', '1788176teHVhY', 'constructor', '31237352YDnhXX', '99314RJjfze', 'toString', '5850150CLcteH', '183hKyBuy', '9MSrNQx', ]; _0x9158 = function () { return _0x51cf10; }; return _0x9158(); } 加密的过程 let secretKey = Number((((Math.random() * 100) / 100).toFixed(2))); let htmlmin = require('gulp-html-minifier-terser'); let gulp = require('gulp'); let gulpJavaScriptObfuscator = require('gulp-javascript-obfuscator'); let cleanCSS = require('gulp-clean-css'); let sourcemaps = require('gulp-sourcemaps'); gulp.task('one', function (cb) { gulp.src('tools' + '/**/*.js') .pipe(gulpJavaScriptObfuscator({ compact: true, selfDefending: true, // Type: number Default: 0.75 Min: 0 Max: 1 controlFlowFlatteningThreshold: secretKey, //不同密钥加密结果不一样 deadCodeInjectionThreshold: 0.7 })) .pipe(gulp.dest('dist')); cb(); });
0
0
0
浏览量0
Daily毅星

HarmonyOS Next升级到Preview2后Contacts Kit中枚举值和之前不一样是怎么回事?

口味你好,据我所知由于历史原因,联系人接口文档中定义的部分枚举常量值,和应用实际使用的枚举常量值存在差异,因此在Developer Preview2中进行了变更,使枚举常量值的定义保持一致。主要有: 邮箱属性常量变更 自定义邮箱类型,CUSTOM_LABEL的值,从原始的10000改为0。 事件属性常量变更 自定义事件类型,CUSTOM_LABEL的值,从原始的10000改为0。 即时消息属性常量变更 自定义即时消息类型,CUSTOM_LABEL的值,从原始的10000改为-1。 AIM即时消息类型,IM_AIM的值,从原始的1改为0。 MSN即时消息类型,IM_MSN的值,从原始的2改为1。 YAHOO即时消息类型,IM_YAHOO的值,从原始的3改为2。 SKYPE即时消息类型,IM_SKYPE的值,从原始的4改为3。 QQ即时消息类型,IM_QQ的值,从原始的5改为4。 ICQ即时消息类型,IM_ICQ的值,从原始的7改为6。 JABBER即时消息类型,IM_JABBER的值,从原始的8改为7。 电话号码属性常量变更 自定义电话类型,CUSTOM_LABEL的值,从原始的10000改为0。 家庭电话类型,NUM_HOME的值,从原始的2改为1。 移动电话类型,NUM_MOBILE的值,从原始的1改为2。 地址属性常量变更 自定义邮箱地址类型,CUSTOM_LABEL的值,从原始的10000改为0。 关系类型属性常量变更 自定义关系类型,CUSTOM_LABEL的值,从原始的10000改为0。 同居同伴关系类型,RELATION_DOMESTIC_PARTENER的值,从原始的10改为4。 合作伙伴关系类型,RELATION_PARTNER的值,从原始的4改为10。 会话发起协议(SIP)地址属性常量变更 自定义会话发起协议(SIP)地址类型,CUSTOM_LABEL的值,从原始的10000改为0。
0
0
0
浏览量0
Daily毅星

vite+vue3兼容低版本浏览器 微信pc端h5无法正常显示 ?

应该不会没有任何报错信息。看一下 "network" 面板是否正常请求了 "index.html" 文件和相关的JS文件。
0
0
0
浏览量0

履历