会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lxm-cnblog
博客园
首页
新随笔
联系
订阅
管理
2023年6月18日
unity将安卓streamingAssetsPath文件复制到persistentDataPath
摘要: ```csharp private void TestCopy() { string from = Application.streamingAssetsPath + "/Test/test.txt"; string to = Application.persistentDataPath + "/T
阅读全文
posted @ 2023-06-18 13:40 longxiaoming
阅读(648)
评论(0)
推荐(0)
2023年5月25日
windows下将Pikafish编译为安卓可执行文件
摘要: 1. 下载Android NDK https://developer.android.com/ndk/downloads?hl=zh-cn 2. 下载Pikafish源码 https://github.com/official-pikafish/Pikafish 3. 编译 在Pikafish的sr
阅读全文
posted @ 2023-05-25 09:38 longxiaoming
阅读(779)
评论(1)
推荐(0)
2023年5月17日
vue自定义组件——search-box
摘要: github地址: https://github.com/lxmghct/my-vue-components 组件介绍 props: value/v-model: 检索框的值, default: '' boxStyle: 检索框的样式, default: 'position: fixed; top:
阅读全文
posted @ 2023-05-17 13:14 longxiaoming
阅读(752)
评论(0)
推荐(2)
2023年5月9日
Mybatis拦截器解决<foreach>列表为空报错问题
摘要: 在mybatis中使用<foreach>标签时, 如果传入的列表为空, 则解析为sql语句时<foreach>标签所在位置会被解析为空, 最终的sql呈现为in ()或者in后面的内容为空, 从而导致sql语法错误。 网上找了很多种方法,如果用到foreach的地方比较多,用拦截器来处理可能会更好。
阅读全文
posted @ 2023-05-09 16:45 longxiaoming
阅读(1370)
评论(0)
推荐(0)
2023年4月26日
mybatis-plus对列表中数据进行查询的性能比较
摘要: 测试代码 共准备了以下几个测试代码: 空白对照 public List<User> test0() { return new ArrayList<>(); } for循环遍历 public List<User> test1(@RequestBody List<Integer> ids) { List
阅读全文
posted @ 2023-04-26 08:31 longxiaoming
阅读(215)
评论(0)
推荐(0)
2023年4月21日
解决http下navigator.clipboard为undefined的问题
摘要: clipboard只有在安全域名下才可以访问(https、localhost), 而http域名下只能得到undefined。 例如现在想要实现点击"分享"按钮,将当前页面的url复制到剪贴板: const clipboard = navigator.clipboard if (clipboard)
阅读全文
posted @ 2023-04-21 19:56 longxiaoming
阅读(1800)
评论(0)
推荐(0)
2023年4月17日
js颜色的单词名称字符串转为rgb颜色值
摘要: js颜色的单词名称字符串转为rgb颜色值 将js单词名称如red,green,blue转为rgb颜色值, 暂时没找到什么特别的方法。网上找到了颜色名称与rgb值的对应表,然后构造成map获取rgb值。 代码放在: https://github.com/lxmghct/my-vue-component
阅读全文
posted @ 2023-04-17 23:50 longxiaoming
阅读(305)
评论(0)
推荐(0)
2023年4月15日
vue自定义密码输入框解决浏览器自动填充密码的问题
摘要: 问题描述 浏览器对于type="password"的输入框会自动填充密码,但有时出于安全或者其他原因,我们不希望浏览器记住并自动填充密码。通过网上查到的一些解决方案,可以总结出以下几种解决方案(主要用edge浏览器进行测试): 通过autocomplete="off"/autocomplete="n
阅读全文
posted @ 2023-04-15 16:50 longxiaoming
阅读(2080)
评论(0)
推荐(2)
非el组件/自定义组件触发el-form的校验
摘要: 参考文档:https://zhuanlan.zhihu.com/p/390466860 问题描述 非el组件像原生的input、自定义组件等,无法触发el-form的rules校验,如下面的代码: <el-form ref="passwordForm" :model="passwordForm" :
阅读全文
posted @ 2023-04-15 05:10 longxiaoming
阅读(1433)
评论(0)
推荐(0)
2023年4月14日
vue自定义组件——ip-input
摘要: github地址: https://github.com/lxmghct/my-vue-components 组件介绍 props: value: 输入的ip地址, 类型为字符串, 格式为xx.xx.xx.xx, default: '' disabled: 是否禁用, 类型为布尔值, default
阅读全文
posted @ 2023-04-14 02:50 longxiaoming
阅读(1339)
评论(0)
推荐(1)
下一页
公告