- 我发现mp-uploader组件在真机调试的情况下导致整个页面无法显示?
<view class="page"> <view class="page__hd"> <view class="page__title">Uploader</view> <view class="page__desc">上传组件</view> </view> <view class="page__bd"> <mp-cells> <mp-cell> <mp-uploader bindfail="uploadError" bindsuccess="uploadSuccess" select="{{selectFile}}" upload="{{uplaodFile}}" files="{{files}}" max-count="5" title="图片上传" tips="图片上传提示"></mp-uploader> </mp-cell> </mp-cells> </view> </view> 这段代码是从教程文档里面拷贝的,然而真机调试并不能用,安卓苹果都测试了。只有停止真机调试之后从手机端进入才能显示。
2020-01-02 - mp-uploader组件为啥不能显示?开发工具中预览是正常的
<view class="page"> <view class="page__hd"> <view class="page__title">Uploader</view> <view class="page__desc">上传组件</view> </view> <view class="page__bd"> <mp-cells> <mp-cell> <mp-uploader bindfail="uploadError" bindsuccess="uploadSuccess" select="{{selectFile}}" upload="{{uplaodFile}}" files="{{files}}" max-count="5" title="图片上传" tips="图片上传提示"></mp-uploader> </mp-cell> </mp-cells> </view> </view> 这段代码是从教程文档里面拷贝的,然而真机并不能用,安卓苹果都测试了
2019-12-30 - 关键帧动画的缩放中心点怎么设置?
默认情况下是以静态的原始中心点为中心,现在我希望以矩形顶边的中点为中心来制作放大动画,我在https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html里面没有找到缩放中心点或者旋转中心点等类似属性
2019-12-18 - this.animate is not defined为什么方法未找到?
我是看教程写的关键帧动画,教程代码地址:https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html 我写的方法是 onLoad: function () { this.setData({ statusBarHeight: app.globalData.statusBarHeight, navBarHeight: app.globalData.navBarHeight }); this.animate('.dialog_body', [ { scale: [0.3, 0.3], ease: 'ease-out' }, { scale: [1, 1], ease: 'ease-in' }, ], 1000); }, 编译的时候报错 VM461:1 thirdScriptError this.animate is not a function;at pages/filterdialog/filterdialog page lifeCycleMethod onLoad function TypeError: this.animate is not a function at l.onLoad (http://127.0.0.1:26109/appservice/pages/filterdialog/filterdialog.js:58:10) at l.(http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1569573) at l.__callPageLifeTime__ (http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1569313) at Tt (http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1588940) at http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1592274 at xt (http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1592767) at Function.(http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1596300) at i.(http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:1565163) at i.emit (http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:574700) at Object.emit (http://127.0.0.1:26109/appservice/__dev__/WAService.js:1:562185) console.error @ VM461:1 errorReport @ VM478 WAService.js:1 thirdErrorReport @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 __callPageLifeTime__ @ VM478 WAService.js:1 Tt @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 xt @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 i.emit @ VM478 WAService.js:1 emit @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 (anonymous) @ VM478 WAService.js:1 n @ VM476 asdebug.js:1 (anonymous) @ VM476 asdebug.js:1 (anonymous) @ VM476 asdebug.js:1 _ws.onmessage @ VM476 asdebug.js:1 VM527:4 Tue Dec 17 2019 16:33:18 GMT+0800 (中国标准时间) sitemap 索引情况提示 VM461:1 根据 sitemap 的规则[0],当前页面 [pages/filterdialog/filterdialog] 将被索引 console.warn @ VM461:1 (anonymous) @ VM527:6 (anonymous) @ VM527:13... 请问为什么官方实例代码不报这个错,而我就报这个错
2019-12-17