- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 weui textarea 字数限制以及动态显示输入字数的方法(jquery版本)
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://res.wx.qq.com/open/libs/weui/0.3.0/weui.css'> </head> <body> <div
2022-03-14 10:52:18
608
转载 js字符串长度计算(一个汉字==两个字符)和字符串截取
//js字符串长度计算 String.prototype.realLength = function() { return this.replace(/[^\x00-\xff]/g, "**").length; // [^\x00-\xff] - 匹配非双字节的字符 }; //按长度截取字符串 String.prototype.realSubstring = function(n){ var str = this||''; if(this.realLength()<=n){r
2022-03-14 10:40:44
383
原创 electron vue 运行单个实例
网上很多资料针对的是老版本或者太啰嗦,只需要在头部加入以下代码即可 const appLock = app.requestSingleInstanceLock() if (!appLock) { app.quit() } 以下是相关api的介绍 // 请求单一实例锁 app.requestSingleInstanceLock() // 此方法返回你的应用实例当前是否持有单例锁 app.hasSingleInstanceLock() // 释放所有由 requestSingleInstanceLo
2022-02-18 13:43:26
476
1
翻译 window10 git 报 /dev/null 的 解决方案
进入 注册表 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services 手动添加 NULL 相关信息 见下图 搞定
2021-12-01 15:59:40
1131
原创 npm -v 报错的解决方案
如果你尝试了 百度里 所有查到的方法 都没有用 可以试着 在安装完成后 进入 C:\Users\Administrator.config\configstore 文件夹 清理 update-notifier-npm.json 文件后 再试 也许就成功了!~~~~
2021-11-30 11:59:29
1792
EditPlus html css js json xml 最全插件 只收1积分
2022-04-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人