02 2024 档案
摘要:
rt,请在全局样式中加入: .uni-body { user-select: text; } 即可,text表示选中文本,none表示禁止选中文本,本来我想在uni-modules中修改user-select的值,发现无效,遂在App.vue中修改了全局样式。
阅读全文

摘要:
nw.js,一个和Electron类似的桌面开发框架,相较于后者,我认为前者在打包这块更快速、简便。 在开发前,先把nw的环境给配置好,前往nw的官网下载:http://nwjs.org.cn/download.html 2025-02-21 更新:上面的链接似乎无法打开了,nw的官网似乎换地址了:
阅读全文

摘要:
1. 获取浏览器 Cookie 的值 const cookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(';').shift(); cookie('_ga'); // Result: "GA1.2.192973
阅读全文

摘要:
function generateRandomString() { let specialChars = "`~!@#$%^&*-+=_|{}[]:;'<>,.?/"; let lowercaseLetters = 'abcdefghijklmnopqrstuvwxyz'; let uppercas
阅读全文
