- 博客(82)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 微信小程序page-container遇到返回拦截报errMsg: “fail:navigateBack intercepted“导致页面锁死
page-container返回拦截 和 返回fail errMsg: "fail:navigateBack intercepted
2025-03-13 22:53:39
382
原创 小程序canvas层级太高
使用wx.canvasToTempFilePath转换成图片再展示出来。可以考虑把canvas 设置成为绝对定位,然后挪到屏幕外。
2025-02-28 14:12:55
135
原创 errMsg: “canvasToTempFilePath:fail fail canvas is empty
小程序使用wx.canvasToTempFilePath报错errMsg: "canvasToTempFilePath:fail fail canvas is empty。字段都配齐了但是还是报错的话 看看有没有传入this。
2025-02-28 14:11:33
261
原创 request:fail errcode:-109 cronet_error_code:-109 error_msg:net::ERR_ADDRESS_UNREACHABLE
切换wifi的时候 connectWifi success回调之后 这个时候有可能使用到的还是旧网络的网 即流量或者是上个wifi的网络发出的请求,得等一段时间才能访问到 可以进行轮询 达到最大次数之后再判断是否还有这个报错。目前发现是在ios微信设置里有一个本地网络的开关,需要把这个开关开了才能访问内网地址。微信调接口报ERR_ADDRESS_UNREACHABLE。在小程序连接wifi的时候还有一种可能也会导致这个报错。
2025-02-12 14:19:26
617
原创 从一串数字字符中去掉挨着的三位,剩下的组成一个数,并找出最大的数
splice (begin deletecount, item1, item2) 从下标begin开始删除deletecount 并在原位置插入item1,item2,改变原数组,返回被删除的数组。substring (startIndex, excludeEndIndex) 从开始下标到结束下标。slice (startIndex, excludeEndIndex) 从开始下标到结束下标。slice(startIndex, excludeEndIndex)从开始下标到结束下标。
2025-02-11 12:42:31
133
原创 微信小程序页面栈最多10个
switchTab: 关闭所有,打开tabbar页面,页面栈只有一个 就是tabbar。reLaunch: 关闭所有,重启小程序,落地到新页面,作为第一个页面。redirectTo:关闭当前 打开一个新的 页面栈里还是10个。navigateTo :打不开下一个页面。
2025-01-24 15:51:42
123
原创 html动态加载script
事件触发时,样式表、图像和子框架可能还没有完全加载。这通常用于检测外部资源是否已完全加载。当一个资源(如脚本、图像或样式表)完成加载时,方法来确保在DOM加载完成后执行代码。当HTML文档被完全加载和解析完成时,使用jQuery,你可以使用。
2023-12-25 18:25:41
1336
1
原创 百度收录图片修改,百度搜索出来的网站缩略图
一种是百度自己爬取的网站 favicon.ico ,另外一种就是在百度平台上传logo2是在百度站长平台上传如何修改百度收录的快照图片 - 站长教程 - 态度云
2022-04-02 17:03:43
1160
原创 Object(...) is not a function
本意是在某个方法上加个防抖,但是加了之后就会报这个错误,检查防抖的引入,没有问题。最后把这个vue文件在路由里进行懒加载,就好了。(感谢大佬)例如 import index from ('@/views/index')换成 const index = () => import('@/views/index')...
2021-10-26 18:24:14
2055
原创 新版本idea setting-gradle下没有offline mode
terminal里直接输入命令: gradlew build就是在线模式, gradlew build --offline就是离线
2020-04-02 14:25:41
2170
原创 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure连的远程数据库我的原因是数据库白名单设置有问题,换网了,需要再加一个白名单ip
2020-03-19 14:40:19
223
原创 Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsExcept...
2020-03-02 22:31:40
6829
原创 No instrumentation registered! Must run under a registering instrumentation.
注意androidx.test和android.support.test出错的原因可能是有些使用android.support.test,、有些使用androidx.test
2019-12-03 19:14:17
4646
原创 Delegate runner 'androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner' for AndroidJUnit4 co
删掉@RunWith(AndroidJUnit4::class)就好了
2019-12-02 19:21:17
2379
5
Invalid syntax in configuration ini file.
2022-07-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人