当前位置:网站首页>Auto.js 自定义对话框
Auto.js 自定义对话框
2022-04-23 17:53:00 【宴西笔记】

view = ui.inflate(
<vertical>
<horizontal>
<text text="账号"/>
<input id="账号"w="*"/>
</horizontal>
<horizontal>
<text text="密码"/>
<input id="密码"w="*"/>
</horizontal>
</vertical>
);
dialogs.build({
customView: view,
title: "登录",
positive: "确定",
negative: "取消",
neutral: "注册"
}).on("positive", (dialog) => {
账号=view.账号.text();
密码=view.密码.text();
toast("账号="+账号+"\n密码="+密码)
}).on("negative", (dialog) => {
toast("取消")
dialog.dismiss();
}).on("neutral", (dialog) => {
toast("注册")
}).show();
QQ群 568523841
版权声明
本文为[宴西笔记]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_25226575/article/details/124347299
边栏推荐
- On the method of outputting the complete name of typeID from GCC
- JS implementation private attribute
- 41. 缺失的第一个正数
- Vite configure proxy proxy to solve cross domain
- 2022年茶艺师(初级)考试模拟100题及模拟考试
- Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag
- MySQL进阶之索引【分类,性能分析,使用,设计原则】
- 2022 tea artist (primary) examination simulated 100 questions and simulated examination
- 470. Rand10() is implemented with rand7()
- 土地覆盖/利用数据产品下载
猜你喜欢

EasymodbusTCP之clientexample解析

JS high frequency interview questions
![C1 notes [task training part 2]](/img/10/48f7490a6c097f2b178ae948cb2c91.png)
C1 notes [task training part 2]

Welcome to the markdown editor

Kubernetes 服务发现 监控Endpoints

2022 judgment questions and answers for operation of refrigeration and air conditioning equipment

2022年上海市安全员C证操作证考试题库及模拟考试

92. 反转链表 II-字节跳动高频题

Allowed latency and side output
![[appium] write scripts by designing Keyword Driven files](/img/05/536701f39dcf8474e90e58738f2094.png)
[appium] write scripts by designing Keyword Driven files
随机推荐
SQL optimization for advanced learning of MySQL [insert, primary key, sort, group, page, count]
Flask项目的部署详解
01 - get to know the advantages of sketch sketch
C1小笔记【任务训练篇二】
Welcome to the markdown editor
油猴网站地址
cartographer_ There is no problem compiling node, but running the bug that hangs directly
Applet learning notes (I)
关于gcc输出typeid完整名的方法
Element calculation distance and event object
Open futures, open an account, cloud security or trust the software of futures companies?
On the method of outputting the complete name of typeID from GCC
圆环回原点问题-字节跳动高频题
高德地图搜索、拖拽 查询地址
Go对文件操作
QT modification UI does not take effect
开源按键组件Multi_Button的使用,含测试工程
Utilisation de la liste - Ajouter, supprimer et modifier la requête
C1 notes [task training part 2]
Timestamp to formatted date