- 真机调试,可以在app.js的onLaunch中设置断点吗?
如题
2020-05-14 - app.json中配置的tabbar究竟能配置几个tab页?
开发环境中我配置了5个,也正常显示5个,但在真机调试和预览中,只显示了4个,中间那个不见了?
2020-05-14 - 在vantui的弹出窗口van-popup中,如何现文字两边加划线?
在正常页面中,有效果,但在van-popup没有效果 <view class='main_view'> <div class='befor'></div> <div class='reason_txt'>入网的理由</div> <div class='after'></div> </view> .main_view{ display: flex; flex-direction: row; justify-content: space-around; width: 100%; height: 60rpx; margin-top: 100rpx; } .befor{ width: 200rpx; height: 1rpx; background: red!important; line-height: 60rpx!important; } .after{ width: 200rpx; height: 1rpx; background: red!important; line-height: 60rpx!important; } .reason_txt{ position: relative; margin-top: -28rpx; }
2020-05-13 - 我的开发工具,怎么经常总是在编译中?
[图片] i5的笔记本,硬件差点,但不至于5-6个小时以上一直在编译吧?用到了一个nmp的界面库。这时cpu100%,有时还正常。
2020-05-06 - 弹性盒子的中图片被压缩?
[图片][图片] 当后面文本自动换行时,前面图片被压缩? <block wx:for='{{news_datas}}'> <view class='news_content'> <image class="news_content_image" src="{{item.imgurl}}" /> <view class='news_content_right_box'> <navigator url='../newsdetail/newsdetail?url={{item.url}}'>{{item.title}}</navigator> <view class='news_content_foot'> <label class='news_content_foot_lbl'>{{item.date}}</label> <label class='news_content_foot_lbl'>{{item.dept}}</label> </view> </view> </view> </block> .news_content{ display: flex; width: 100%; flex-direction: row; background-color: white; padding: 10rpx; margin-top: 10rpx; } .news_content_image{ height: 140rpx; width: 140rpx; } .news_content_right_box { display: flex; flex-direction: column; flex-grow:1; padding: 10rpx; margin-left: 10rpx; background-color: white; } .news_content_foot{ display: flex; flex-direction: row-reverse; margin-top: 20rpx; } .news_content_foot_lbl{ margin-right: 20rpx; font-size: 30rpx; color: #3b3b3b; }
2020-05-06 - wx.uploadFile怎么上传超过2M的文件?
用wx.uploadFile上传超过2M的文件时,调试工具显示上传正常,但后台服务器根本没有接到请求。现在拍一个照片经常超过5M,怎么上传?
2020-04-19 - 上传文件如何调试,开发工具下正常,上传体验版不正常?
1,在开发工具下,用测试号连接后台服务器,上传文件正常,上传多少次都正常; 2,在1)的条件下,用真机调试,第一次上传正常,第二次上传,开发工具端输出信息正常,但服务器报错 3,小程序上传到管理平台,用体验版测试,第一次上传正常,第二次以后报错,和2)报错信息一样。后台服务器重启后,又能正常上传一次。 服务端错误信息如下: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:350) ~[commons-fileupload-1.4.jar!/:1.4] at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:113) ~[commons-fileupload-1.4.jar!/:1.4] at com.yingxin.wxbackserver.controller.UploadController.uploadPicture(UploadController.java:55) ~[classes!/:0.0.1-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_171] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.4.RELEASE.jar!/:5.2.4.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_171] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_171] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.31.jar!/:9.0.31] at java.lang.Thread.run(Unknown Source) [na:1.8.0_171] Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:1033) ~[commons-fileupload-1.4.jar!/:1.4] at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:931) ~[commons-fileupload-1.4.jar!/:1.4] at java.io.InputStream.read(Unknown Source) ~[na:1.8.0_171] at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98) ~[commons-fileupload-1.4.jar!/:1.4] at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68) ~[commons-fileupload-1.4.jar!/:1.4] at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346) ~[commons-fileupload-1.4.jar!/:1.4] ... 52 common frames omitted
2020-04-16 - js脚本莫名奇妙的错误?
写法1: let arr = this.data.picpaths.splice(index, 1); 写法2: let arr = this.data.picpaths; arr.splice(index, 1) 代码从数组中删除元素,有区别吗?结果是第一中写法,当数组中仅剩一个元素时,无法删除!
2020-04-16 - 页面中的函数不能用剪头函数吗?
剪头函数: OnfinishTakeOnePic:(filepath)=>{ const eventChannel = this.getOpenerEventChannel() eventChannel.emit('takeOnePictureFinished', { filepath: filepath }); wx.navigateBack(); } //传统写法: OnfinishTakeOnePic:function(filepath){ const eventChannel = this.getOpenerEventChannel() eventChannel.emit('takeOnePictureFinished', { filepath: filepath }); wx.navigateBack(); } 剪头函数写法this指针为undefined,啥情况??
2020-04-16 - 小程序管理平台也没有找到微信认证入口啊?
以前公众号有,难不成进行“微信认证”,需要注册微信号,再注册公众号,再进行认证,然后绑定小程序?
2020-04-14