zzl00770

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

01 2024 档案

getskiplimit 跳过指定条数的数据 ,常用于分页
摘要://云端代码 'use strict'; const db = uniCloud.database() exports.main = async (event, context) => { const collection = db.collection(event.name) const res 阅读全文

posted @ 2024-01-26 21:42 品味人生nuiapp 阅读(7) 评论(0) 推荐(0) 编辑

tabs 标签页
摘要:<scroll-view scroll-x="true" class="scroll-view-x" scroll-left="{{scrollleft}}" scroll-with-animation> <view class="scroll-view-item" wx:for="{{tabDat 阅读全文

posted @ 2024-01-24 20:45 品味人生nuiapp 阅读(3) 评论(0) 推荐(0) 编辑

updata 更新数据
摘要://云端代码 'use strict'; const db = uniCloud.database() exports.main = async (event, context) => { const collection = db.collection(event.name) const docL 阅读全文

posted @ 2024-01-23 23:04 品味人生nuiapp 阅读(16) 评论(0) 推荐(0) 编辑

remove 移除数据
摘要://云端代码 const db = uniCloud.database() exports.main = async (event, context) => { const collection = db.collection(event.name) const docList = await co 阅读全文

posted @ 2024-01-23 22:42 品味人生nuiapp 阅读(12) 评论(0) 推荐(0) 编辑

getdata 按条件查询数据
摘要://云端代码 const db = uniCloud.database() exports.main = async (event, context) => { const collection = db.collection(event.name) const res = await collec 阅读全文

posted @ 2024-01-23 22:00 品味人生nuiapp 阅读(12) 评论(0) 推荐(0) 编辑

getlimit 获取n条数据
摘要://前端代码 getlimit() { uni.showLoading({ title: '处理中...' }) uniCloud.callFunction({ name: 'getlimit', data:{ name:'unicloud-test', data:{ product:"uniClo 阅读全文

posted @ 2024-01-23 20:46 品味人生nuiapp 阅读(7) 评论(0) 推荐(0) 编辑

add 添加一条数据
摘要://云端函数 'use strict'; const db = uniCloud.database() exports.main = async (event, context) => { const collection = db.collection(event.name) const res 阅读全文

posted @ 2024-01-23 20:29 品味人生nuiapp 阅读(9) 评论(0) 推荐(0) 编辑

js 比较两个日期的大小
摘要:function tab(date1,date2){ var oDate1 = new Date(date1); var oDate2 = new Date(date2); if(oDate1.getTime() > oDate2.getTime()){ console.log('第一个大'); } 阅读全文

posted @ 2024-01-22 17:56 品味人生nuiapp 阅读(12) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示