摘要: setup下定义如下: <script setup> import { onShow, onHide, onReady } from '@dcloudio/uni-app' onShow(()=>{ console.log('setup中的onShow'); }) onHide(()=>{ cons 阅读全文
posted @ 2023-02-09 17:12 1024记忆 阅读(7243) 评论(0) 推荐(1)
摘要: addRule 函数 1 @原型: addRule(type, contentObject) 2 @参数: 3 type: [String fontFace 必需] 协议名称, 不可修改, 固定值为: fontFace。 4 contentObject:[Object 必需] 字体配置 5 { 6 阅读全文
posted @ 2023-02-09 17:09 1024记忆 阅读(342) 评论(0) 推荐(0)
摘要: 1 // 如果拷贝此内容切记去除注释 2 // 下面的配置文件中所有时间的单位都是秒 3 { 4 // 数据库中password字段是加密存储的,这里的passwordSecret即为加密密码所用的加密算法 5 // 通常情况下设定好passwordSecret之后不需要再进行修改 6 // 如果要 阅读全文
posted @ 2023-02-09 16:52 1024记忆 阅读(835) 评论(0) 推荐(0)
摘要: 1 'use strict'; 2 exports.main = async (event, context) => { 3 //JQL连接数据库 4 const db = uniCloud.databaseForJQL({ 5 event, 6 context 7 }) 8 9 //event为客 阅读全文
posted @ 2023-02-09 16:25 1024记忆 阅读(27) 评论(0) 推荐(0)
摘要: 1 // 云对象教程: https://uniapp.dcloud.net.cn/uniCloud/cloud-obj 2 // jsdoc语法提示教程:https://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/129 3 module. 阅读全文
posted @ 2023-02-09 16:24 1024记忆 阅读(140) 评论(0) 推荐(0)
摘要: 1 // schema扩展相关文档请参阅:https://uniapp.dcloud.net.cn/uniCloud/jql-schema-ext.html 2 module.exports = { 3 trigger: { 4 // 写入JQL数据库的标准写法 5 // read触发器 6 bef 阅读全文
posted @ 2023-02-09 16:22 1024记忆 阅读(183) 评论(0) 推荐(0)
摘要: 1 { 2 "bsonType": "object", // 固定节点 3 "description": "表的描述", 4 "required": [], // 必填字段,比如name,age 5 "permission": { 6 "read": false, // 前端非admin的读取记录权 阅读全文
posted @ 2023-02-09 16:20 1024记忆 阅读(469) 评论(0) 推荐(0)