首页
Search
1
antd多选组件(select mode="multiple")怎么限制最大选项数量
15 阅读
2
AnnotationConfigApplicationContext类中的register方法是在哪里被调用的?
8 阅读
3
audio如何监听缓存的状态?
6 阅读
4
Oracle表空间还有剩余却报ORA-1653,ORA-1654无法拓展错误
6 阅读
5
vue-awesome-swiper翻页时,动画不执行
6 阅读
默认分类
登录
Search
标签搜索
javascript
php
vue.js
html
java
html5
css
python
node.js
mysql
ios
android
react.js
前端
linux
jquery
c++
webpack
objective-c
nginx
点点
累计撰写
113,808
篇文章
累计收到
1
条评论
首页
栏目
默认分类
页面
搜索到
113600
篇与
的结果
2022-11-28
pandas,如何给多列赋同一个值
我想对dataframe的指定几个列(多行)赋同一个值,请问如何实现。比如: A1 A2 A3 0 1 2 3 1 1 2 3 2 1 2 3 3 4 5 2赋值后: A1 A2 A3 0 1 8 8 1 1 8 8 2 1 2 3 3 4 5 2xinyangq
2022年11月28日
4 阅读
8 评论
0 点赞
2022-11-28
VUE如何监听当前页面的隐藏显示
前端用的是vue框架现在有个这样的需求:第一个页面点击一个按钮打开一个新的页面(是新页面),然后在新页面进行一些操作,完成操作后关闭该页面,这时回到了第一个页面,这是第一个页面要监听到回来了进行一些操作如何实现监听?我在vue里监听页面的hidden事件没起作用,请问有知道的大佬么,TUTchasec
2022年11月28日
2 阅读
8 评论
0 点赞
2022-11-28
idea 强迫症之.iml文件和项目文件夹名称不一样
如图项目的文件夹是server 后面还有一个中括号[fireline]看着很别扭 这个对项目有影响吗 有啥好的方案让其一致从github上导下来项目就这样 无语哦Apple
2022年11月28日
3 阅读
6 评论
0 点赞
2022-11-28
AnnotationConfigApplicationContext类中的register方法是在哪里被调用的?
注解方式使用spring IOC容器,AnnotationConfigApplicationContext类的构造方法中的refresh方法的执行会触发regiter方法,但我没找到在哪里被调用的,求大佬解答xiaoleecr
2022年11月28日
8 阅读
6 评论
0 点赞
2022-11-28
keil调试时如何查看某个变量的地址?
我记得之前这里会有一块标着地址,现在怎么找不到了呢? :)qjing
2022年11月28日
5 阅读
8 评论
0 点赞
2022-11-28
求大佬指点,关于多表联合计算的问题
我项目用的springboot+vue,现在的业务需求是:有a b c d(id,min,max,cal_num)四张表: a根据外键id选择获取b中符合的数据,和a中的某列计算(加减乘除),得到sum1;同理,再获取c中的数据计算sum2;之后a再根据前面的数据sum1和sum2,加减乘除得到sum,当sum满足在d中的某一行的min,max范围后,获取cal_num和sum计算,得到我们要的最终值。此操作涉及到批量操作,批量操作a中的某些行,请问该如何实现:前端,后端,还是数据库函数实现......对了,前面得到的sum1 sum2 和最终值还要存到另一张表中。真的求大佬! 在哪一端实现,还有怎么操作,我现在有点懵逼。我好像没陈述清除,我说仔细一点:a(aid,av,bid,cid)b(bid,bv)c(cid,cv)d(did,dmin,dmax,dv)整个的计算方法是:result=(av+avbv+avcv)*dv。括号里的选择哪个bv、vc,是根据a里面的bid,cid。而选取哪个dv值,是根据括号里的值判断的,dmin<(av+avbv+avcv)<dmax。而av,avbv,avcv,result都会存到另一个表。此操作涉及到批量操作,批量操作a中的某些行。不知道应该在后端,前端,还是数据库(函数)实现,求大佬指点。EmperorWS
2022年11月28日
1 阅读
7 评论
0 点赞
2022-11-28
ldap 多分组使用哪种 objectClass?
我有一个 ldap 服务器:xxx.com我有多个子域名:a.xxx.comb.xxx.comc.xxx.com我有多个用户cn=test1,dc=xxx,dc=comcn=test2,dc=xxx,dc=com我希望:test1 用户具备 a,b 的登录权限test2 用户具备 b,c 的登录权限请问 ldap 是否有内置相应的 objectClass 对象,例如:objectClass: posixGroupobjectClass: posixAccount的关系。ztj1993
2022年11月28日
2 阅读
8 评论
0 点赞
2022-11-28
vue element-ui如何设置 el-select 显示的值?
本人在用vue + elUI做一个国际区号的选择下拉框。我想实现在选择显示的时候出现的地区名称,而选择成功之后界面显示的只保留区号,该如何实现这是我写的代码LionXmX
2022年11月28日
5 阅读
6 评论
0 点赞
2022-11-28
微信浏览器将base64 png图片保存成了jpg格式?
目前ios有问题,测试的机型为:iphone7,iOS13.3, 微信版本:7.0.10图片是png格式,但是长按保存下来是jpg格式在线代码https://jsbin.com/sozulac/edit?html,output微信中长按保存那张狗头图片安卓手机测试正常lwpassvoice
2022年11月28日
5 阅读
19 评论
0 点赞
2022-11-28
git报错 error: cannot spawn more: No such file or directory
请问下这个怎么解决桔子214032
2022年11月28日
4 阅读
15 评论
1 点赞
2022-11-28
图片合成到视频里面,比如右糖 有啥开源项目吗
近期想做图片合成到视频里面的一个功能,但是没有接触过这方面的东西。希望各位大佬推荐几款开源的插件。前端,后端都行,能实现这个功能就行咕咕gu
2022年11月28日
3 阅读
6 评论
0 点赞
2022-11-28
mybatis报Communications link failure
我有定时任务执行数据库查询,每几分钟一次,压根不会超时,看日志最后一个包也是19ms之前发送的,为什么会报数据库链接失败呢?我的代码里有自己写了一个mybatis的拦截器,使用了pagehelper的5版本,同时使用了threadlocal来进行数据传递(拦截器里用了这个threadlocal),同时写了一个webListener来进行请求之后的销毁处理,这些会影响到我们的连接池关闭吗?感觉应该不会啊[09:10:03:163] [10.221.231.214] [INFO] [schedu...read-1] [HttpReportJobDaoImpl] - task completed request is : TaskCompletedRequest{context=null, taskId=5010566995, status=FAILED, msg='org.springframework.dao.DataAccessResourceFailureException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error: ** BEGIN NESTED EXCEPTION ** com.mysql.jdbc.exceptions.jdbc4.CommunicationsException MESSAGE: Communications link failure Last packet sent to the server was 19 ms ago. STACKTRACE: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 19 ms ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3134) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1818) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737) at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:998) at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) at com.sun.proxy.$Proxy189.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:63) at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79) at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63) at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) at com.github.pagehelper.PageInterceptor.intercept(PageInterceptor.java:108) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61) at com.sun.proxy.$Proxy184.query(Unknown Source) at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) at com.jd.jr.jcca.configuration.mybatis.interceptor.MybatisDataPermissionInterceptor.intercept(MybatisDataPermissionInterceptor.java:64) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61) at com.sun.proxy.$Proxy184.query(Unknown Source) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77) at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433) at com.sun.proxy.$Proxy130.selectOne(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy167.getByApplyId(Unknown Source) at com.jd.jr.jcca.bankmanager.service.impl.ApplyDetailServiceImpl.saveApplyDetail(ApplyDetailServiceImpl.java:39) at com.jd.jr.jcca.mq.fmq.listener.FirstSubmitSuccessListener.processApplyMessage(FirstSubmitSuccessListener.java:57) at com.jd.jr.jcca.mq.fmq.listener.FirstSubmitSuccessListener.onMessage(FirstSubmitSuccessListener.java:38) at com.jdjr.fmq.client.consumer.TopicConsumer$1.call(TopicConsumer.java:769) at com.jdjr.fmq.client.consumer.TopicConsumer$1.call(TopicConsumer.java:725) at com.jdjr.fmq.client.consumer.ConsumerRetryLoop.execute(ConsumerRetryLoop.java:34) at com.jdjr.fmq.client.consumer.TopicConsumer.dispatchMessages(TopicConsumer.java:725) at com.jdjr.fmq.client.consumer.TopicConsumer$TopicMessageDispatcher.dispatch(TopicConsumer.java:879) at com.jdjr.fmq.client.consumer.GroupConsumer.pull(GroupConsumer.java:343) at com.jdjr.fmq.client.consumer.GroupConsumer$QueueConsumer.run(GroupConsumer.java:571) at java.lang.Thread.run(Thread.java:745) Caused by: java.net.SocketException: Connection timed out at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3119) ... 49 more ** END NESTED EXCEPTION ** ### The error may exist in com/jd/jr/jcca/unicard/dao/mapper/TUnCallbackLogMapper.java (best guess) ### The error may involve com.jd.jr.jcca.unicard.dao.mapper.TUnCallbackLogMapper.queryBatchForJob ### The error occurred while executing a query ### SQL: SELECT * FROM t_un_callback_log t WHERE t.delete_flag = 1 AND t.status IN ('INIT', 'FAIL') AND t.try_num < 5 AND t.next_time between ? and now() ORDER BY id DESC LIMIT ? ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error: ** BEGIN NESTED EXCEPTION ** com.mysql.jdbc.exceptions.jdbc4.CommunicationsException MESSAGE: Communications link failure Last packet sent to the server was 19 ms ago. STACKTRACE: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 19 ms ago.梦见存在
2022年11月28日
2 阅读
1 评论
0 点赞
2022-11-28
vscode运行vue项目后,修改代码终端报错
问题描述npm run serve启动项目后,修改代码,项目会自动重新编译,但是eslint会报错。修改的内容:将import {Vue} from "vue-property-decorator"的vue重新复制粘贴了一次。问题出现的平台版本及自己尝试过哪些方法系统:win10工具: vscode项目用的 vue ui图形界面自动创建的尝试过的方法:ctrl+c强制结束然后等一会儿在npm run serve才好相关代码错误提示:ERROR Failed to compile with 1 errors 14:03:51 error in ./src/components/login/Login.vue Module Error (from ./node_modules/eslint-loader/index.js): F:\learn\vue\vue-typescript\src\components\login\Login.vue 2:3 warning Delete `··` prettier/prettier 3:5 warning Delete `␍⏎········` prettier/prettier 5:1 warning Delete `····` prettier/prettier 6:1 warning Delete `····` prettier/prettier 7:1 warning Delete `····` prettier/prettier 8:1 warning Replace `········<el-form·:label-position="labelPosition"·label-width="80px"·:model="loginUser">` with `····<el-form␍⏎······:label-position="labelPosition"␍⏎······label-width="80px"␍⏎······:model="loginUser"` prettier/prettier 9:5 warning Insert `>` prettier/prettier 10:1 warning Delete `······` prettier/prettier 11:5 warning Replace `␍⏎················<el-input·v-model="loginUser.username"></el-input>␍⏎····` with `····<el-input·v-model="loginUser.username"></el-input>` prettier/prettier 14:7 warning Delete `······` prettier/prettier 15:1 warning Delete `····` prettier/prettier 16:7 warning Delete `······` prettier/prettier 17:3 warning Delete `··␍⏎··········` prettier/prettier 19:1 warning Replace `····␍⏎············` with `······` prettier/prettier 21:5 warning Delete `␍⏎········` prettier/prettier 23:3 warning Delete `··␍⏎····` prettier/prettier 28:45 warning Insert `;` prettier/prettier 32:1 warning Delete `··` prettier/prettier 32:5 error Type string trivially inferred from a string literal, remove type annotation @typescript-eslint/no-inferrable-types 33:3 warning Delete `··` prettier/prettier 34:3 warning Replace `··public·username:·string·=·''` with `public·username:·string·=·""` prettier/prettier 34:5 error Type string trivially inferred from a string literal, remove type annotation @typescript-eslint/no-inferrable-types 35:1 warning Replace `····public·password:·string·=·''` with `··public·password:·string·=·""` prettier/prettier 35:5 error Type string trivially inferred from a string literal, remove type annotation @typescript-eslint/no-inferrable-types ✖ 24 problems (3 errors, 21 warnings) 3 errors and 21 warnings potentially fixable with the `--fix` option. @ ./src/router/index.ts 5:0-49 14:13-18 @ ./src/main.ts @ multi (webpack)-dev-server/client?http://192.168.124.4:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts Type checking in progress... No type errors found Version: typescript 3.7.5 Time: 1111ms我的代码:<template> <div class="login"> <h3>Hello, this is login page</h3> <h5>account:admin<br />password: admin</h5> <el-form :label-position="labelPosition" label-width="80px" :model="loginUser"> <el-form-item label="用户名"> <el-input v-model="loginUser.username"></el-input> </el-form-item> <el-form-item label="密码"> <el-input v-model="loginUser.password"></el-input> </el-form-item> </el-form> </div> </template> <script lang="ts"> import {Vue} from "vue-property-decorator" import LoginEntity from "../../entity/LoginEntity"; export default class Login extends Vue { public labelPosition: string = "left"; public loginUser: LoginEntity = new LoginEntity(); public username: string = ''; public password: string = ''; } </script> 你期待的结果是什么?实际看到的错误信息又是什么?期待结果:正常编译实际错误:见错误提示代码。二手代码程序员
2022年11月28日
2 阅读
1 评论
0 点赞
2022-11-28
react-hooks为什么使用useRef可以保存上次的值?
我在useEffect中把state状态赋值给ref对象的current属性,也就是说这个preCountUseRef.current拿到最新的state值,可是在DOM中显示上次的state值相关代码import React, { useState, useRef, useEffect } from 'react' const App = () => { const [count, setCount] = useState(0) const preCountUseRef = useRef(count) useEffect(() => { preCountUseRef.current = count }) return ( <div> <p>precount: {preCountUseRef.current}</p> <p>You clicked {count} times</p> <button onClick={() => setCount(() => count + 1)}>Click me</button> </div> ) } export default App能否详细说明一下useRef运行机制以及对官网解释的"useRef就像是可以在其.current属性中保存一个可变值的“盒子”。"这句话该怎么理解呢?唐吉
2022年11月28日
3 阅读
1 评论
0 点赞
2022-11-28
关于聊天功能中聊天记录的存储
用node + 小程序想做一个聊天的功能,数据库目前用的是mysql,现在在思考一个问题:聊天记录应该怎么存储呢,首先数据库要存一份,但如果接收到别人的信息(websocket传过来),难道要再去请求数据库拿一次吗。还是说可以存在缓存或者本地? 求大神指点liuj4
2022年11月28日
2 阅读
1 评论
0 点赞
2022-11-28
thinkphp 更新数据的问题?
tp更新一条数据,模型为Subjects,使用了getBy方法查询后用save保存,实际上没效果,也没有错误信息?public function updateSubjects($code,$name){ //以下写法不能更新数据,没有找到原因 $res = Subjects::getByCode($code); $res->name = $name; $res->save(); echo Subjects::getLastSql(); }wukong
2022年11月28日
3 阅读
1 评论
0 点赞
2022-11-28
c++函数对象疑问
在家等待开工,看了本c++入门书,在看一篇文章中有介绍函数对象,自己搜了下,但是不清楚这种写法是什么意思:template <class T> struct less : binary_function<T, T, bool> { bool operator()(const T& x, const T& y) const { return x < y; } };这种写法中的binary_function<T, T, bool>是啥意思?常见的函数对象写法:class increment { private: int num; public: increment(int n) : num(n) { } int operator () (int arr_num) const { return num + arr_num; } };我理解的函数对象用法是:increment(10); //等价于 increment.operator()(10);另外一个例子中也存在疑问: #include <complex> // std::complex #include <iostream> // std::cout/endl #include <unordered_map> // std::unordered_map #include <unordered_set> // std::unordered_set using namespace std; namespace std { template <typename T> struct hash<complex<T>> { size_t operator()(const complex<T>& v) const noexcept { hash<T> h; cout << "Hello,world"<<endl; return h(v.real()) + h(v.imag()); } }; } // namespace std int main() { unordered_set<int> s{ 1, 1, 2, 3, 5, 8, 13, 21 }; unordered_map<complex<double>, double> umc{{{1.0, 1.0}, 1.4142}, {{3.0, 4.0}, 5.0}}; return 0; } 这里我在hash中添加了打印,结果打印了三次hello,world.但是Unorder_map中只有两个元素,讲道理两个元素插入,计算hash也是计算两次呀,为什么打印三次呢?风清扬
2022年11月28日
2 阅读
1 评论
0 点赞
2022-11-28
nacos启动后 log文件占用太多,如何修改日志等级。
nacos单机版,在运行一段时间后在/usr/local/nacos/bin/logs目录下产生几十个G的日志文件,如修改或者关闭nacos的日志配置呢大海无量
2022年11月28日
0 阅读
1 评论
0 点赞
2022-11-28
webpack配置style-loader的问题
场景:比如 html中有些内联样式和外联样式,如何让打包后的外联样式,在内联样式上面呢 避免内联样式被覆盖{ test: /\.css$/, use: [ { loader: 'style-loader', options: {} }, 'css-loader' ] }一条幸福的咸鱼
2022年11月28日
1 阅读
1 评论
0 点赞
2022-11-28
pycharm使用:如何显示交互页面
cache = {} def fibonacci(n): res = cache.get(n) if res: return res if n <= 2: return 1 res = cache[n] = fibonacci(n-1) + fibonacci(n-2) return res这段代码我在IDLE里面测试是可以正常运行的,输入fibonacci(5)可以显示结果8但是在pycharm里面点击Run,程序就直接结束了,没有>>>提示符让我进一步调试啊,怎么办?求助Charlotte0924
2022年11月28日
0 阅读
1 评论
0 点赞
1
2
...
5680