当前位置:网站首页>Auto.js学习笔记16:按项目保存到手机上,不用每次都保存单个js文件,方便调试和打包
Auto.js学习笔记16:按项目保存到手机上,不用每次都保存单个js文件,方便调试和打包
2022-06-30 03:01:00 【PYB3】
目录
简介
使用Auto.js版本7.0.4.1 Pro
我们刚学习一般是用一个js文件编写代码,但随着项目功能增加,代码臃肿导致业务代码和技术代码及其它代码耦合比较严重,这样必然用得到多个js文件。js文件引用看:Auto.js学习笔记7:js
保存整个项目到指定设备
这样的操作毫无疑问,方便了调试节约时间,不用每次改动其它js文件都要挨个保存一次到设备上,同样避免了修改工具js文件后,忘记保存,导致项目报错的情况。
创建项目
1. 在VS Code 创一个项目,例如A项目。我使用的是非Pro版本指令创建的项目Ctrl+Shift+P指令是,Auto.js: New Project
2. 在auto Pro上也创建一个项目,复制project.json到A项目根目录里,如图3。
3. 在autoPro项目里修改主main.js文件名称为你项目的主js文件名称,例如MyMain.js。
4. 面板命令:Ctrl+Shift+P ,保存项目到设备上,如图4。这样你就发现真方便,不用每次单个js文件保存了。



打包
打包非常方便了,直接在autoPro上点击Android机器人进行打包操作。


总结
学习的重要性,学的也多就更加方便自己,会发现之前的方式是多花时间。
光看不敲是没用的
看后一定要去实践
一定要去敲代码
一定要去运行试错
这样才是有意义的学习
边栏推荐
- How to set password complexity and timeout exit function in Oracle
- Tp6 framework integrates JWT for token authentication
- 迅為恩智浦iTOP-IMX6開發平臺
- Use of Arthas
- 问题记录:fel_lib.c:26:10: fatal error: libusb.h: 没有那个文件或目录
- Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
- Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
- SQLite use
- F1C100S自制开发板调试过程
- 简单自定义MVC优化
猜你喜欢

Idea remote debugging remote JVM debug

uniapp 地址转换经纬度

Welfare lottery | what are the highlights of open source enterprise monitoring zabbix6.0

Distributed file storage system fastdfs hands on how to do it

Raki's notes on reading paper: neighborhood matching network for entity alignment

Summary of knowledge points about eigenvalues and eigenvectors of matrices in Chapter 5 of Linear Algebra (Jeff's self perception)

Série de tutoriels cmake - 02 - génération de binaires à l'aide du Code cmake

Interrupt operation: abortcontroller learning notes

约瑟夫环 数学解法

LeetCode 3. 无重复字符的最长子串
随机推荐
可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写
How does native JS generate Jiugong lattice
CMake教程系列-03-依赖管理
Jvxetable增加自定义按钮
Federal learning: dividing non IID samples by Dirichlet distribution
2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
Servlet interview questions
一篇文章带你入门vim
个人PC安装软件
Série de tutoriels cmake - 02 - génération de binaires à l'aide du Code cmake
(图论) 连通分量(模板) + 强连通分量(模板)
MySQL extracts strings from table fields
编译一个无导入表的DLL
Raki's notes on reading paper: discontinuous named entity recognition as maximum clique discovery
LeetCode 3. 无重复字符的最长子串
Wechat applet +php to realize authorized login operation
Distributed file system fastdfs
Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
SQLite use
Multi card server usage