草庐IT

Divisible_by

全部标签

【HarmonyOS】关于Caused by java.lang.IllegalStateException The specified …

【问题描述】线上收到大量手机的崩溃异常,以华为手机为主,崩溃如下1.Causedby:java.lang.IllegalStateException:Thespecifiedmessagequeuesynchronizationbarriertokenhasnotbeenpostedorhasalreadybeenremoved.2.atandroid.os.MessageQueue.removeSyncBarrier(MessageQueue.java:600)3.atandroid.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2822)4

Access to XMLHttpRequest at ‘http://xx‘ from origin ‘http://xx‘ has been blocked by CORS policy

问题分析:在进行前后端项目联调时,出现跨域问题,就是axios调用后端接口出现跨域具体报错如下,原因是因为浏览器的同源策略,会检查两个URL地址是否同源(协议,端口,IP地址是否相同),不同源就会出现跨域问题解决方案:针对跨域问题,有很多解决办法,比如前端配置跨域,后端配置跨域,或者配置Nginx反向代理等等,这里我在前端解决。修改src\main.js//设置反向代理,前端请求默认发送到http://前端ip地址:你的前端端口/apivaraxios=require('axios')axios.defaults.baseURL='/api'这里一定注意axios.defaults.baseU

warning: in the working copy of ‘App.vue‘, LF will be replaced by CRLF the next time Git touches it

问题gitadd.一大串的warningwarning:intheworkingcopyof'App.vue',LFwillbereplacedbyCRLFthenexttimeGittouchesitwarning:intheworkingcopyof'pages.json',LFwillbereplacedbyCRLFthenexttimeGittouchesitwarning:intheworkingcopyof'pages/cart/cart.vue',LFwillbereplacedbyCRLFthenexttimeGittouchesitwarning:intheworkingco

javascript - '未捕获错误 : DATA_CLONE_ERR: DOM Exception 25' thrown by web worker

所以我正在创建一个网络worker:vararrayit=function(obj){returnArray.prototype.slice.call(obj);};work=arrayit(images);console.log(work);//work=images.push.apply(images,array);//Method:"load+scroll"varworker=newWorker('jail_worker.js');worker.postMessage(work)worker.onmessage=function(event){console.log("Worke

javascript - '未捕获错误 : DATA_CLONE_ERR: DOM Exception 25' thrown by web worker

所以我正在创建一个网络worker:vararrayit=function(obj){returnArray.prototype.slice.call(obj);};work=arrayit(images);console.log(work);//work=images.push.apply(images,array);//Method:"load+scroll"varworker=newWorker('jail_worker.js');worker.postMessage(work)worker.onmessage=function(event){console.log("Worke

解决报错:ographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore

ubuntu18.4出现报错:py:32:CryptographyDeprecationWarning:Python3.6isnolongersupportedbythePythoncoreteam.Therefore,supportforitisdeprecatedincryptographyandwillberemovedinafuturerelease.以下是分析和解决方法:        这个报错是由Cryptography库引起的,它是一个Python的加密库,用于提供各种加密算法和协议的实现。这个报错的意思是,Python3.6已经不再受Python核心团队的支持,因此Crypto

Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateNotYetValidException:

生命就像人家的魔法书,涂涂改改又是一年📖目录原因解决办法完整报错:在执行sqoop脚本导数据的时候出现Causedby:javax.net.ssl.SSLHandshakeException:java.security.cert.CertificateNotYetValidException:NotBefore:TueOct1117:24:18CST2022报错,证书不合法,解决办法是jdbc连接MySQL时不使用ssl协议,所以在jdbc连接后面加上参数useSSL=false就可以了。jdbc:mysql://localhost:3306/student?useSSL=false原因:sq

axios/ajax 请求头部添加自定义字段报错(has been blocked by CORS policy: Request header field authorization is ...

axios/ajax请求头部添加自定义字段报错(hasbeenblockedbyCORSpolicy:RequestheaderfieldauthorizationisnotallowedbyAccess-Control-Allow-Headersinpreflightresponse.)这个错误是由于浏览器的安全机制所引起的,即跨域资源共享(CORS)策略。当浏览器发现一个跨域请求时,会发送一个预检请求(PreflightRequest)来确认服务器是否允许跨域请求。在预检请求中,浏览器会检查请求头中的字段是否被服务器允许。如果请求头中包含了服务器不允许的字段,就会报错。解决方法:在服务器端

sqlserver  sql 异常<除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。>

问题:使用sql查询时报错SELECT*FROM(SELECTa.value2,a.value3,a.value4,a.hospitalization_idFROMv_treatment_processaWHEREa.is_del=0ANDa.value1='1'ORDERBYa.treatment_items,a.use_func,a.is_record,a.value2,a.value3DESC)dWHERE1=1解决办法:在sql子查询SELECT后加TOP100PERCENT(查询出前百分比为100的数据,也就是查询出全部数据),如下SELECT*FROM(SELECTTOP100PE

html - CSS Flexbox 问题 : Why is the width of my flexchildren affected by their contents?

我的flexbox的2个child都被赋予了box-flex:1的样式。我的理解是,它们的宽度应该彼此相等(两者都占据其父flexbox总宽度的50%)。但是当内容被添加到child时,它们的宽度会改变(取决于内容和填充)!为什么会这样?CSS:.hasFlex{display:box;display:-webkit-box;display:-moz-box;-webkit-box-align:start;-moz-box-align:start;box-align:start;}.box0{-webkit-box-flex:0;-moz-box-flex:0;box-flex:0;}