当前位置:网站首页>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
边栏推荐
- vite配置proxy代理解决跨域
- Commonly used functions -- spineros:: and spineros::)
- 2022江西光伏展,中国分布式光伏展会,南昌太阳能利用展
- 给 el-dialog 增加拖拽功能
- Submit local warehouse and synchronize code cloud warehouse
- JS high frequency interview questions
- 102. 二叉树的层序遍历
- 386. Dictionary order (medium) - iteration - full arrangement
- MySQL进阶之索引【分类,性能分析,使用,设计原则】
- 386. 字典序排数(中等)-迭代-全排列
猜你喜欢
MySQL进阶之索引【分类,性能分析,使用,设计原则】
2022年流动式起重机司机国家题库模拟考试平台操作
Halo open source project learning (II): entity classes and data tables
Leak detection and vacancy filling (6)
MySQL_01_简单数据检索
开源按键组件Multi_Button的使用,含测试工程
102. Sequence traversal of binary tree
Gaode map search, drag and drop query address
2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
Remember using Ali Font Icon Library for the first time
随机推荐
2022江西光伏展,中国分布式光伏展会,南昌太阳能利用展
C1小笔记【任务训练篇一】
Go对文件操作
Where is the configuration file of tidb server?
440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题
MySQL_01_简单数据检索
Vite configure proxy proxy to solve cross domain
Summary of common SQL statements
This point in JS
JS parsing and execution process
41. 缺失的第一个正数
SystemVerilog (VI) - variable
油猴网站地址
Add animation to the picture under V-for timing
209. Minimum length subarray - sliding window
Uniapp custom search box adaptation applet alignment capsule
Go语言JSON包使用
cartographer_ There is no problem compiling node, but running the bug that hangs directly
给 el-dialog 增加拖拽功能
587. Install fence / Sword finger offer II 014 Anagrams in strings