- 博客(6)
- 收藏
- 关注
原创 使用IntersectionObserver观察video离开视口时停止播放
使用IntersectionObserver观察video离开视口时停止播放。
2023-04-23 15:31:14
215
原创 uniCloud(clientDB)如何使用模糊查询?
search(e){ db.collection('music') .where({ title : new RegExp(e, 'i') //模糊查询条件 }) .get() .then((res)=>{ console.log(res) // res 为数据库查询结果 }).catch((err)=>{ }) }
2021-07-19 17:02:16
1382
1
转载 Html在文字中间添加空格
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 == 一个中文宽度 == 普通的英文半角空格 == == == no-b
2021-03-09 16:33:59
6505
原创 给uniapp的swiper添加左右翻页按钮
<swiper class="swiper" :current="curDot" @change="swiperChange"> <swiper-item v-for="(item, index) in list" :key="index"> <view class="swiper-item uni-bg-red">{{item}}</view> </swiper-item></swiper>首先个swiper绑定 :.
2020-07-16 15:08:32
5751
9
原创 uniapp获取系统信息,获取手机顶部状态栏的高度。
在App.vue添加onLaunch: function() { uni.getSystemInfo({ success: function(e) { // #ifndef MP Vue.prototype.StatusBar = e.statusBarHeight; if (e.platform == 'android') { Vue.prototype.CustomBa.
2020-07-15 18:20:59
6133
原创 在uniapp和taro中,分别用两种不同的方法实现单选全选。
首先加上checkbox标签`,checkbox标签外包裹checkbox-group标签,checkbox-group标签上有@change属性,可以触发change事件,可以获取value的值。<view class="cartlist"> <checkbox-group @change="allselected"> <che...
2020-02-23 19:17:24
1060
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人