- 微信pc端浏览器drop属性无效?
@drop.stop="drop($event, pdf_index + 1) @dragover.prevent :draggable="false" 拖拽之后的放置无效,不会触发drop
2022-09-19 - webview组件可以打开关联的公众号文章吗?
'webview'组件可以打开关联的公众号文章吗
2020-06-03 - video进度条
video进度条已经加载了很多但是视频还是显示加载中。。。 [图片]
2019-03-15 - video播放报错出现error
<video id="myVideo" src="https://youcankangfu.com/img/youkan/3c7fccf6b443a690a3f313ecaf2cb64d/承重1031.mp4" enable-danmu danmu-btn controls style='width:100%;' autoplay='true' bindended='playEnd' binderror='errorAlert'> <cover-view class="ad_popError" wx:if="{{popErrorMsg}}">{{popErrorMsg}} </cover-view> </video> ios播放视频会出现错误error MEDIA_ERR_NETWORK,而安卓能够正常播放,是视频的路径带中文的原因还是什么[图片]
2019-02-16 - onHide
在ios中进入后台时会触发onhide事件把web-view隐藏,但是在安卓中web-view没有隐藏还在继续执行 this.setData({ src: '', show:false })
2018-11-17 - webview
webview能否检测到小程序时候进入后台
2018-11-16 - 定时器
timer = setInterval(function () { nowTime -=1 if (nowTime == -1) { that.setData({ awaitShow: false, playTime: 0, playIndex: parseInt(that.data.playIndex) + 1, scrollIndex: that.data.playIndex+1 }) clearInterval(timer) timer = null if (that.data.systemMes == 'i') { that.musicNow.pause() } else { that.awaitMusic.pause() that.awaitMusic.destroy() } that.playTimeNow() } else { that.setData({ playTime: all - nowTime, nowTime: (parseInt(nowTime / 60) >= 10 ? parseInt(nowTime / 60) : ("0" + parseInt(nowTime / 60))) + ":" + (parseInt(nowTime % 60) < 10 ? ("0" + parseInt(nowTime % 60)) : parseInt(nowTime % 60)) }) if (that.data.nowTime == "00:03") { that.resetMusic.play() if (that.data.systemMes == 'i') { that.musicNow.pause() } else { that.awaitMusic.pause() that.awaitMusic.destroy() } } } }, 1000) 有时侯会出现卡顿,卡顿之后会跳过某一段时间
2018-11-01 - textarea删除
textarea删除时光标会跳到最后 <textarea maxlength='-1' bindinput='change' bindlinechange='lineheight' disabled='{{disabled}}' bindtap='check' value='{{article}}' space='emsp' cursor-spacing='40' style='{{textHeight}}' bindblur=''></textarea> change: function (e) { this.data.otherValue = e.detail.value } [图片][图片]
2018-05-24 - we.getUserInfo
wx.login({ success: function (e) { console.log(e) wx.getUserInfo({ success: function (res) { var simpleUser = res.userInfo; console.log(simpleUser.nickName); }, fail:function(res){ console.log(res) } }); }, fail:function(e){ console.log(e) } }); 输出为:{errMsg: "login:ok", code: "071C7ucn1AvRqk0rFKdn1l2xcn1C7uct"}和{errMsg: "getUserInfo:fail scope unauthorized"}
2018-05-11 - 微信支付
微信支付在开发者工具上可以正常的使用,远程调试也可以,但是在手机预览下就不行,开发版也不行
2018-04-28