- wx.showShareImageMenu该API在企业微信小程序中是否支持?
wx.showShareImageMenu该API在企业微信小程序中是否支持?
2022-06-01 - 微信小程序如何主动跳转APP?跳转可否带参数?
微信小程序如何主动跳转APP?跳转可否带参数?
2020-06-16 - 微信公众号网页开发 能否获取到设备的UUID 或者UDID?
微信公众号网页开发 能否获取到设备的UUID 或者UDID?
2020-06-15 - live-player 不支持动态设置orientation?
live-player 不支持动态设置orientation?设置完不生效
2020-05-11 - live-player 不支持动态设置orientation?
live-player 不支持动态设置orientation?设置完没有生效
2020-05-11 - 斗鱼、虎牙直播小程序 全凭的时候右上角胶囊没有了,是如何做到的?
斗鱼、虎牙直播小程序 全凭的时候右上角胶囊没有了,是如何做到的? 用的也是live-player么? 项目中设置 pageOrientation 横屏也是有胶囊的呀
2020-04-27 - canvas2d requestAnimationFrame放一会突然加速,然后停了,再次正常?
// requestAnimationFrame放一会突然加速,然后停了,再次正常?还有就是cancelAnimationFrame 不生效??? // 代码如下 var doubleCount = 0; const fishBufferLoop = () => { if((doubleCount++)%2==0){ doubleCount = 0; goAnimate(); } that.data.bufferCanvas.requestAnimationFrame(fishBufferLoop) } that.data.bufferCanvas.requestAnimationFrame(fishBufferLoop) // function goAnimate() { that.data.bufferContext.clearRect(0, 0, screenWidthOrg, canvasHeight); for (var i = 0; i < swimFishList.length; i++) { var currentFishObj = swimFishList[i]; var fishName = currentFishObj.fishName; var fWidth = fishName.width * ratio; var fHeight = fishName.height * ratio; var fTop = currentFishObj.postop; var fLeft = currentFishObj.posleft; that.data.bufferContext.save() that.data.bufferContext.drawImage( fishName, fLeft, fTop, fWidth, fHeight, ) that.data.bufferContext.restore() } }
2020-03-28 - canvas.drawImage 做动画,每30ms频繁调用该接口cpu发热严重怎么办?
求助~ 求助~ 求助~ // 目的是让小动物从右侧向左侧移动 const ctx = wx.createCanvasContext('canvasID'); function drawPic(){ ctx.save(); var picList = that.data.picList; //频繁调用 ctx.drawImage 。。。。 for (var i = 0; i < picList.length;i++){ if (picList[i].isStop != 1) {//目标没有被射中 ctx.drawImage( picList[i].picName, picList[i].posleft, picList[i].postop, picList[i].width, picList[i].height ) } } ctx.restore(); ctx.draw(); } /-----------分割线----------/ //调用方法 goAnimate(); var lastTime = 0; function goAnimate() { var currTime = new Date().getTime(); var timeToCall = Math.max(0, 30 - (currTime - lastTime)); fishMaoTimeOut = setTimeout(function() { goAnimate(); }, timeToCall); drawPic(); }
2020-03-24 - 小程序是否有“添加到我的小程序”这个功能的api?(2020年3月)
小程序是否有“添加到我的小程序”这个功能的API,这个对外开放了么?
2020-03-18 - 微信小程序 video视频上传 wx.uploadFile限制2M以内?
"<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Maximum upload size of 2048000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3781692) exceeds the configured maximum (2048000)</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b></p><pre>org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 2048000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3781692) exceeds the configured maximum (2048000) org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:162) org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:142) com.csii.pe.channel.http.servlet.MainServlet.doPost(MainServlet.java:569) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) com.csii.pe.channel.http.servlet.FixEncodingFilter.doFilter(FixEncodingFilter.java:63) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) </pre><p><b>Root Cause</b></p><pre>org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3781692) exceeds the configured maximum (2048000) org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:965) org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310) org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:334) org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:115) org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:158) org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:142) com.csii.pe.channel.http.servlet.MainServlet.doPost(MainServlet.java:569) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) com.csii.pe.channel.http.servlet.FixEncodingFilter.doFilter(FixEncodingFilter.java:63) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) </pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/8.5.39</h3></body></html>"
2019-07-31