1.0.8 • Published 12 months ago

autojs-common-business v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Auto.js Common Business 库

简介

autojs-common-business 是一个专为 Auto.js 设计的业务逻辑工具库。本库旨在简化日常自动化任务中的常见业务流程处理,提供了时间处理、用户界面、验证和一系列实用工具的功能封装。

主要功能

  • 时间处理 (acb.time): 提供了时间相关的处理功能,如获取特定服务器时间等。

  • 用户界面 (acb.ui): 封装了用户界面相关的操作,便于在 Auto.js 脚本中快速构建和管理 UI。

  • 验证 (acb.verification): 提供了一系列验证工具,用于数据校验和安全性检查。

  • 实用工具 (acb.utils): 包含了多种实用函数和工具,用于简化常见的编程任务。

安装

npm install autojs-common-business

使用

在您的 Auto.js 脚本中,您可以通过 require 语句引入本库,并使用上述提到的功能模块。

// 引入 acb 库,因为实际运行环境是移动端的autojs,只支持简单的模块加载系统,这里只能使用物理路径
const acb = require("node_modules/autojs-common-business/index.js");
const targetTime = new Date(); // 设置目标时间为当前时间

// 假设我们想等待明天的同一时刻
targetTime.setDate(targetTime.getDate() + 1);

// 等待目标时间
acb.time
    .waitForTime(targetTime)
    .then(() => console.log("目标时间已到达"))
    .catch((error) => console.error("等待失败:", error));

版本信息

当前版本:1.0.0

贡献与反馈

如果您在使用过程中发现任何问题,或有改进建议,欢迎通过 GitHub 仓库提交 issue 或 pull request。

仓库信息

请注意,由于 Auto.js 主要运行在 Android 设备上,对于 npm/yarn 包管理的支持可能有所不同。建议查阅 Auto.js 的官方文档以获取更详细的集成指导。此外,本 README 是基于提供的代码和 package.json 文件自动生成的,可能不包含所有详细信息和最新更新。请务必参考 GitHub 仓库中的最新内容。

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

1 year ago