04 2022 档案
摘要:开发时偶尔会需要前端传客户端的ip地址,以下api可以获取客户端外网ip。访问跨域可配置前端proxy代理 1、http://ip.42.pl/raw 我访问不到 2、https://whois.pconline.com.cn/ipJson.jsp?json=true 查询IP的归属地,后面跟IP,
阅读全文
摘要:yarn global dir# Yarn安装包位置 C:\Users\xxx\AppData\Local\Yarn\global\node_modules\.bin # 缓存位置 C:\Users\xxx\AppData\Local\Yarn\Cache # 修改yarn安装包的位置 yarn c
阅读全文
摘要:in ./node_modules/screenfull/index.js Module parse failed: Unexpected token (55:42) You may need an appropriate loader to handle this file type, curre
阅读全文
摘要:// typings.d.ts declare module '*.json' { const value: any; export default value; } 在项目的根目录中找到的tsconfig.json文件,然后添加一个新行:“resolveJsonModule”:true, 需要在t
阅读全文
摘要:在使用ts开发时,引入图片报错 import img from '../../assets/images/logo.png'; 找不到模块“../../assets/images/foo.png”或其相应的类型声明。 因为typescript无法识别非代码资源。我们需要主动的去声明这个module
阅读全文
摘要:Issues checking service aborted - probably out of memory. Check the `memoryLimit` option in the ForkTsCheckerWebpackPlugin configuration.If increasing
阅读全文
摘要:图片: .jpeg格式:image/jpeg .png格式: image/png .gif格式: image/gif 音频: .mp3格式:audio/mpeg 视频: .mp4格式:video/mp4 .m3u8格式:application/x-mpegURL .mov格式:video/x-ms-
阅读全文
摘要:const nav = (window.navigator as any); if (nav.msSaveOrOpenBlob) { nav.msSaveOrOpenBlob(data, filename); }
阅读全文
摘要:https://www.npmjs.com/package/vue3-sketch-ruler/v/1.1.5?activeTab=versions 安装后,发现 这个没有 复制完代码,准备运行,发现缺少 vue-demi 感觉vue2整的不彻底 ,没办法,yarn add vue-demi <te
阅读全文