
前端
aaagjy
这个作者很懒,什么都没留下…
展开
-
修复ios系统微信小程序使用自带输入法input输入值丢失问题
ios系统的微信小程序在使用自带输入法输入内容后,不点联想词或完成,直接点其他输入框导致input事件拿不到值。原创 2024-10-29 22:29:10 · 444 阅读 · 0 评论 -
iframe 嵌入第三方网站跨域,此图片来自微信公众平台 未经允许不可引用
1.使用cors-anywhere跨域问题<iframe id="iFrame" style="width: 100%; height: 100%" frameborder="0" />getUrl(url) { const http = window.location.protocol === 'http:' ? 'http:' : 'https:' // 调用跨域API let realurl = http + '//cors-anywhere.herokuapp.com/原创 2021-12-17 15:16:39 · 3622 阅读 · 0 评论 -
lerna WARN No packages found where npmlog can be added.
在 lerna.json 中,packages 属性如果配置的包名不对,在执行 lerna add 时就会出现 lerna WARN No packages found where npmlog can be added. 的报错原创 2021-06-07 18:59:46 · 2158 阅读 · 0 评论 -
执行 npm link 命令后不能识别命令
执行npm link 后,执行全局命令不生效,后来检查发现,在packages.json中没有写 “bin” 属性,添加"bin": { "test": "bin/index.js" },后,重新执行 npm link ,就可以直接在命令行输入 test 执行 bin/index.js 了。# bin/index.js#! /usr/bin/env nodeconsole.log('hello world');...原创 2021-06-04 18:11:32 · 2606 阅读 · 0 评论