当前位置:网站首页>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
边栏推荐
- Uniapp custom search box adaptation applet alignment capsule
- Use of list - addition, deletion, modification and query
- 198. Looting - Dynamic Planning
- Chrome浏览器的跨域设置----包含新老版本两种设置
- 開期貨,開戶雲安全還是相信期貨公司的軟件?
- In JS, t, = > Analysis of
- 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
- Cross domain settings of Chrome browser -- including new and old versions
- 列錶的使用-增删改查
- C1小笔记【任务训练篇二】
猜你喜欢
Remember using Ali Font Icon Library for the first time
开源按键组件Multi_Button的使用,含测试工程
2022江西光伏展,中國分布式光伏展會,南昌太陽能利用展
土地覆盖/利用数据产品下载
JS high frequency interview questions
flink 学习(十二)Allowed Lateness和 Side Output
JS get link? The following parameter name or value, according to the URL? Judge the parameters after
Go的Gin框架学习
Leak detection and vacancy filling (6)
Flask项目的部署详解
随机推荐
JS forms the items with the same name in the array object into the same array according to the name
The method of changing a value in the array and a value in the object of wechat applet
Allowed latency and side output
Gets the time range of the current week
Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
【Appium】通过设计关键字驱动文件来编写脚本
Applet learning notes (I)
Construction of functions in C language programming
C1小笔记【任务训练篇一】
列錶的使用-增删改查
ES6 new method
2022江西光伏展,中國分布式光伏展會,南昌太陽能利用展
Arithmetic expression
Laser slam theory and practice of dark blue College Chapter 3 laser radar distortion removal exercise
索引:手把手教你索引从零基础到精通使用
Sword finger offer 03 Duplicate number in array
Examination question bank and online simulation examination of the third batch (main person in charge) of special operation certificate of safety officer a certificate in Guangdong Province in 2022
Vite configure proxy proxy to solve cross domain
440. The k-th small number of dictionary order (difficult) - dictionary tree - number node - byte skipping high-frequency question
Error in created hook: "referenceerror:" promise "undefined“