
淘宝小程序
Z_ammo
我的梦想是成为一个不务正业的前端!
展开
-
[淘宝小程序] 父子组件方法传递
子向父传递方法1.在父组件(本文中用的是一个页面)中引入子组件"myComponent"在[pageName].json中输入{ "usingComponents": { "my-component": "../../components/myComponent/myComponent" }}支付宝小程序要求文件夹名与组件名一致,引用名不能大写,且引入组件时只需...原创 2020-04-17 18:35:17 · 1876 阅读 · 2 评论 -
[淘宝小程序]my.createAnimation()的用法与填坑
基本用法1.在js文件中设置animationonLoad () { this.test();}test(){varanimation=my.createAnimation({transformOrigin:"topright",duration:3000,timeFunction:"ease-in-out",de...原创 2020-03-22 14:32:13 · 2562 阅读 · 0 评论