摘要:
【应用场景一】 在当前APP界面中检索特点的节点,比如检索 "id":"abc", "text": "123"的节点。二个条件必须同时满足 fun.sendCode("getAllNodes", {"id": "abc", "text": "123"}) 【应用场景二】 在当前APP界面中,某一按钮 阅读全文
摘要:
API列表 (自写API,供自查询。对您无用,不要看了) 接口原型 说明 luaApp.find 根据APP特征字符查找APP包名,比如:anjian。关键词不区分大小写 luaApp.lists 获取所有已安装的APP的包名 luaApp.getRuningLists 获取所有正在运行的APP l 阅读全文
摘要:
API列表 (自写API,供自查询。对您无用,不要看了) 【须知】 一、LUA中没有日期类型。在LUA中日期有二种表现方式: 1) 时间戳日期 ,比如:1731132998 2) 日期表,比如:{year=, month=, day=, hour=, min=, sec=} 二、本接口中,兼容了日期 阅读全文
摘要:
API列表 (自写API,供自查询。对您无用,不要看了) 接口原型 说明 luaNumber.isInt(n, than, zero) 检测是否是整形数。支持字符型数字 luaNumber.isFloat(n, than) 检测是否是浮点数。支持字符型数字 luaNumber.rndInt(sInt 阅读全文
摘要:
API列表 (自写API,供自查询。对您无用,不要看了) 接口原型 说明 luaHttp.get(config) 访问网址,注意它不是GET方式。可以POST数据 luaHttp.upload(url, filePath, cookies) 上传文件 luaHttp.split(url) 拆分 ur 阅读全文
摘要:
API列表 (自写API,供自查询。对您无用,不要看了) 接口原型 说明 luaString.left(str, num) 获取字符串左侧指定数量的字符 luaString.right(str, num) 获取字符串右侧指定数量的字符 luaString.mid(str, pos, num) 获取字 阅读全文
摘要:
【功能实现】 当变量值发生变化时,自动触发对应的监听函数 【引入】 在Plug内引入 ws.lua文件。 【代码】 Import "ws.lua" //引入 ws.lua插件 //设置监听变量name,并与函数chageName 绑定 ws.addListen "name", chageName / 阅读全文
摘要:
一。子节点的field写法: const res3 = await db.collection(res1, res2).field('_id._value as value, name as text, _id["ws-config-brand"] as children').get() 因为 ws 阅读全文
摘要:
template代码: <template> <view> <scroll-view scroll-y="true" @scrolltolower="handleReachBottom" style="height: 100vh;"> 内容部份 </scroll-view> </view> </te 阅读全文