百度ueditorueditor not import language file?
接口采用thinkphp,public作为静态资源目录,vue2后台项目,打包后的文件放在public/admin_web下。后台使用vue-editor-wrap,按照文档在vue的public下的UEditor防编辑器文件,现在情况是编辑器正常加载出来,但是浏览器控制台报错ueditor not import language file。但我看zh-cn.js文件在网络检测里是已经加载的。但还...
2024-02-22JPG 还是 PNG 和内存结构有关系吗?还是只是保存到硬盘的时候,才有区别?
我最近在使用 selenium 做一个网页自动截屏的服务, 保存的截图需要保存为 jpg 文件有两个相关的 apiselenium/webdriver/remote/webdriver.py def get_screenshot_as_png(self) -> bytes: """ Gets the screenshot of the current wind...
2024-02-22只使用了el-button一个组件 按需加载后,打包文件仍然很大
以下是使用unplugin-vue-components 按需加载配置 configureWebpack: {plugins: [ require('unplugin-vue-components/webpack')({ /* options */ }), Components({ resolvers:[ElementPlusResolver()], })],}, ...
2024-02-22Redisson 的分布式锁找不到?
大佬们,接口里用的 Redisson 的分布式锁,使用 Jmeter 并发测试也都没有问题,但是在 Reids 管理工具上,找不到这个锁,这是为什么?即使给这个锁设置了很长的超时时间,也找不不到不知道怎么回事,今天(20220728)又测试了下,现在是有了。回答:确认是不是在db0中。可以通过在debug中查询redis看是否有key。如果没有,则可能分布式锁压根没有生效,检查并发下的业务是否如...
2024-02-22python 如何查看一个函数的所有参数信息
比如有一个需求,我需要知道一个函数的参数信息,如果获取?是在程序里判断,不是去看代码那种比如下面的例子,我有一个 parse_params 专门用来对 func obj 的 params 做校验:from loguru import loggerfrom typing import Callabledef haha(a: int, b: str, c=1, **kwages) -> int...
2024-02-22element-plus怎么按需导入icon?
照着官方给的示例icon里的的组件还是无法解析,只能全局引入回答:文档里面说的很直白了吧:如果你想像用例一样直接使用,你需要全局注册组件,才能够直接在项目里使用。如果想要按需引入,就不能直接复制下面 icon 列表里面的用例去使用了。因为复制出来是这样的:<el-icon><Plus /></el-icon> 。你得去 import { Edit, Share, Delete, Search, ...
2024-02-22vue.js 2模板中输出VNode错在哪了?
模板内容:<template> <div> <el-row> <h4 class="title-center" style="font-size:13px;">变更内容</h4> <table class="oams-table" v-loading="isLoding"> <tbody> <tr v-for=...
2024-02-22在同一页使用 es6 function 即便没有先宣告
mma()let mma = () => { console.log(1)}会出错Uncaught TypeError: mma is not a function但这样子mma()function mma() { console.log(1)}没毛病那 es6 怎么样没宣告也可以无痛使用?回答:mma()function mma() { console.log(1)}这...
2024-02-22vue3中组件为何不能使用this呢?
我有一个Main.vue组件:<script setup>const init = () => { console.log(this) // 打印出来是undefined ...}init()</script>...vue3中组件为何不能使用this呢?回答:vue3 组合式api中不支持对组件实例的访问,只能在 options api 中访问 this。形如一些挂载到...
2024-02-22redis反序列化问题
报错如下:org.springtramework.core.convert.Conversionl-aiLedtxception: failed to convert from type java.Lang.String to type java.Lang.Long to vaLue 1{"beginTime":1638954300246,"currentPage":1,"endTime":163...
2024-02-22