大大大白鹅

2024年1月18日

js 计算百分比

摘要: getPercentValue(arrList, index, precision) { //arrList要计算数据的数组 //index要计算数组中值的下表 //precision百分比保留几位小数,默认保留2位小数 // 判断是否为空 if (!arrList[index]) { return 阅读全文

posted @ 2024-01-18 10:04 大大大白鹅 阅读(186) 评论(0) 推荐(0) 编辑

2023年12月20日

vue2加载远程组件

摘要: <template> <div class="async-component"> <div @click="child">hahah</div> <component ref="test" :is="remote" v-if="remote" :test="test" @handler="haha" 阅读全文

posted @ 2023-12-20 14:12 大大大白鹅 阅读(135) 评论(0) 推荐(0) 编辑

js 视频录制

摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <button onclick="startRecording()">开始录像</button> <button onclick="s 阅读全文

posted @ 2023-12-20 14:02 大大大白鹅 阅读(36) 评论(0) 推荐(0) 编辑

2021年12月25日

uniapp中使用svga动画,编译到app h5,不支持小程序

摘要: <template> <view> <div id="svgaBox" ></div> </view></template> <script> export default { data() { return { } }, onReady() { }, methods: { } }</script> 阅读全文

posted @ 2021-12-25 15:06 大大大白鹅 阅读(749) 评论(0) 推荐(0) 编辑

导航