2023年10月10日

闭包使用场景

摘要: 闭包在JavaScript中有许多应用场景,它们可以帮助你解决各种问题,包括封装数据、创建模块、处理异步操作等。以下是一些常见的闭包应用场景: 封装私有变量和方法: 使用闭包可以创建对象,其中包含私有成员变量和方法,这些成员对外部代码不可见。这有助于实现信息隐藏和数据封装。 function Cou 阅读全文

posted @ 2023-10-10 10:38 美乐居士 阅读(61) 评论(0) 推荐(0)

2023年6月14日

Window安装IOS手机调试环境

摘要: 一、安装ios_webkit_debug_proxy 1、管理员打开powershell 2、运行set-executionpolicy unrestricted -s cu 选择是 3、iex "& {$(irm get.scoop.sh)} -RunAsAdmin" 4、scoop bucket 阅读全文

posted @ 2023-06-14 10:14 美乐居士 阅读(27) 评论(0) 推荐(0)

2023年6月1日

谷歌插件开发记录

摘要: chrome.tabs.create需在popup.js或background.js文件中调用。 获取cookies权限 "permissions" : ["cookies","<all_urls>"], 阅读全文

posted @ 2023-06-01 15:25 美乐居士 阅读(9) 评论(0) 推荐(0)

2023年5月12日

uniapp移动端输入监听键盘上正在输入的值

摘要: 例如搜狗输入法的英文预测模式下,输入的字符不会马上赋给输入框。 input有个ignoreCompositionEvent属性,是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件, 阅读全文

posted @ 2023-05-12 10:24 美乐居士 阅读(788) 评论(0) 推荐(0)

2023年4月1日

node更新版本后出现问题——某个依赖版本不对

摘要: npm uninstall sass-loader node-sass npm install sass-loader@8.0.2 sass@1.26.5 --save-dev 阅读全文

posted @ 2023-04-01 21:08 美乐居士 阅读(33) 评论(0) 推荐(0)

cordova android使用https协议

摘要: 在cordvoa添加平台后,cordovalib的文件夹下 SystemWebViewClient.java 文件 (code\platforms\android\CordovaLib\src\org\apache\cordova\engine); 修改:onReceivedSslError,方法, 阅读全文

posted @ 2023-04-01 21:05 美乐居士 阅读(124) 评论(0) 推荐(0)

解决VSCode终端中禁止运行脚本问题的一种方式

摘要: 1. 右击VSCode图标,选择以管理员身份运行; 2. 在终端中执行get-ExecutionPolicy,显示Restricted,表示状态是禁止的; 3. 这时执行set-ExecutionPolicy RemoteSigned; 4. 此时再执行get-ExecutionPolicy,显示R 阅读全文

posted @ 2023-04-01 21:02 美乐居士 阅读(128) 评论(0) 推荐(0)

uniapp android检查权限,不进行获取

摘要: var Manifest = plus.android.importClass("android.Manifest"); var MainActivity = plus.android.runtimeMainActivity(); MainActivity.checkSelfPermission(M 阅读全文

posted @ 2023-04-01 21:00 美乐居士 阅读(287) 评论(0) 推荐(0)

uni-simple-router路由组件的使用问题

摘要: 1、uni-simple-router路由组件导致无法使用eventChannel 进行页面跳转传值——使用路由导航传值 2、导致onBackPress事件被阻止一次后失效——使用路由暴力解锁。 const router = createRouter({ platform: process.env. 阅读全文

posted @ 2023-04-01 20:57 美乐居士 阅读(493) 评论(0) 推荐(0)

uni——uni-file-picker的使用

摘要: 使用自己服务器上传文件,选择过一次后,再次选择限制次数规则无效,选择事件触发后添加ref做清空处理clearFiles() 阅读全文

posted @ 2023-04-01 20:50 美乐居士 阅读(1746) 评论(0) 推荐(0)

导航