{"id":49093192,"url":"https://github.com/autox-community/autojs-web","last_synced_at":"2026-04-20T19:11:20.867Z","repository":{"id":44422878,"uuid":"296240886","full_name":"autox-community/autojs-web","owner":"autox-community","description":"使用 html css js 作为 autojs (AutoX) 的界面,当然也可以用 SolidJs，React，Svelte，Vue 之类的 前端框架","archived":false,"fork":false,"pushed_at":"2025-03-28T11:35:01.000Z","size":605,"stargazers_count":65,"open_issues_count":0,"forks_count":25,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-20T02:56:47.655Z","etag":null,"topics":["autojs","autojs-web","autox","autoxjs","react","solidjs","sveltejs","vuejs","webview"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autox-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-17T06:38:58.000Z","updated_at":"2025-05-20T14:07:46.000Z","dependencies_parsed_at":"2025-02-18T20:23:58.552Z","dependency_job_id":"b9cf5cfe-e69c-4c05-9334-a69ce728ee5d","html_url":"https://github.com/autox-community/autojs-web","commit_stats":null,"previous_names":["autox-community/autojs-web","xxxxue/autojs_web"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/autox-community/autojs-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autox-community%2Fautojs-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autox-community%2Fautojs-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autox-community%2Fautojs-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autox-community%2Fautojs-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autox-community","download_url":"https://codeload.github.com/autox-community/autojs-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autox-community%2Fautojs-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32061442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autojs","autojs-web","autox","autoxjs","react","solidjs","sveltejs","vuejs","webview"],"created_at":"2026-04-20T19:11:20.198Z","updated_at":"2026-04-20T19:11:20.861Z","avatar_url":"https://github.com/autox-community.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autojs_web\n\n\u003e 使用 `html / css / js` 作为 autojs 的界面，可以互相通讯\n\n\u003e 当然也可以用前端框架\n\n## 🚀 如果你需要编写 复杂的项目 与 界面\n\n推荐使用 🚀 [https://github.com/xxxxue/autox-super-kit](https://github.com/xxxxue/autox-super-kit)\n\n- 使用 Web 框架编写界面 ( react / vue 等 ), 也支持 auto.js 原生界面的编写\n- auto.js 语法支持 ES6+ (各种 js 现代语法)\n- 使用 TypeScript 编写代码\n- 可以编译为 Dex\n- ......\n\n## 适用范围\n\n使用 `Rhino` 引擎的 auto.js 都能用 (包括 autoX 等等)\n\n## 重要说明\n\n由于 aj 会在打包的时候把所有 .js 文件进行加密, \n\n但 浏览器 无法识别这种加密,\n\n所以浏览器端的 .js 需要改为 `.jsx` , 来跳过 aj 的加密. \n\n这样浏览器才能正确识别 js 代码\n\n## 使用\n\n在 VSCode 中 打开 `autojs-project` 目录，按 `Ctrl + Shift + P`，\n\n选择 `运行项目(Run Project)` 命令，\n\nAuto(X).js 插件会找 `根目录下的 Project.json`\n\n代码中有例子 ( vue3 + vant )，可以直接进行测试。\n\n## 灵感来源\n\n这一套逻辑的灵感来源于 AutoX.js 示例\n\n但 示例 中有许多不完美的地方 和 bug \n\n比如 AutoX 中是创建了一个 iframe 并拦截 `shouldOverrideUrlLoading` 事件\n\n这个事件经过测试是 无法并发响应, \n\n比如 在一个按钮点击事件中 顺序调用多个`invoke`, 只有最后一个会生效,\n\n前面的几个调用都没有任何反应.\n\n所以改为 拦截 `onConsoleMessage` 也就是 `console.log` 事件\n\n这样就支持了 并发响应,\n\n然后 再优化 亿点代码. 最终就有了这个新版.\n\n## 交流\n\n[https://github.com/xxxxue/sponsors](https://github.com/xxxxue/sponsors)\n\n## 截图\n\n\u003cimg src=\"img.assets/image-20211012135328926.png\" width=\"300px\"\u003e\n\n\u003cimg src=\"img.assets/image-20211012135349423.png\" width=\"300px\"\u003e\n\n\u003cimg src=\"img.assets/image-20220818192132429.png\" width=\"300px\"\u003e\n\n\u003cimg src=\"img.assets/image-20220818191800397.png\" width=\"300px\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautox-community%2Fautojs-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautox-community%2Fautojs-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautox-community%2Fautojs-web/lists"}