一、模型压缩 通过模型网格压缩,通过gltf配合Draco压缩的方式,可以在视觉效果近乎一致的情况下,让3D模型文件成倍缩小。(不能压缩贴图) ...
套用多层vfor循环的复杂页面结构 指定的:key="subItem.id" 为undefind引起的问题导致点击传的参数为undefind。并...
时间格式化 function formatDate(time,format='YY-MM-DD hh:mm:ss'){ var date =...
圆圈水波纹动效 <view class="g-contrast"> <view class="g-circle"></view> </...
// 防抖闭包函数 // const fangdou = (() => { // let timeId = '' // re...
导航组件 <!-- components/my-component/index.wxml --> <view class="topbar" st...
自定义tabbar组件 <!--miniprogram/custom-tab-bar/index.wxml--> <cover-view cla...
使用 type // 需要的参数 path // 链接 let type = that.getUrlValue('type', path); ...
需求 1.默认显示封面; 2.一个视频播放的时候,其他视频停止播放,并显示封面。 思路 1.通过wx:if判断当前视频是否是播放的状态,如果是就...