当前位置:网站首页>layer.prompt
layer.prompt
2022-06-29 18:29:00 【杭杭爸爸】
layer.open({
//formType: 2,//这里依然指定类型是多行文本框,但是在下面content中也可绑定多行文本框在这里插入代码片
title: '是否确信将账号临时挂账?',
area: ['300px', '240px'],
btnAlign: 'c',
closeBtn:'1',//右上角的关闭
content: `<div><p>备注:</p><textarea name="txt_remark" id="remark" style="width:200px;height:80px;"></textarea></div>`,
btn:['确认','取消','关闭'],
yes: function (index, layero) {
var value1 = $('#remark').val();//获取多行文本框的值
alert('您刚才输入了:' + value1);
layer.close(index);
//可执行确定按钮事件并把备注信息(即多行文本框值)存入需要的地方
},
no:function(index){
alert('您刚才点击了取消按钮');
layer.close(index);
return false;//点击按钮按钮不想让弹层关闭就返回false
},
close:function(index){
alert('您刚才点击了关闭按钮');
return false;//点击按钮按钮不想让弹层关闭就返回false
}
});
边栏推荐
- WBF: new method of NMS post filter frame for detection task?
- 6.29模拟赛总结
- Fluent's MSH grid learning
- How to use the low code platform of the Internet of things for service management?
- 剑指 Offer 34. 二叉树中和为某一值的路径-dfs法
- [daily training] 535 Encryption and decryption of tinyurl
- 山东大学项目实训(八)设计轮播图进入页面
- 产品-Axure9(英文版),中继器(Repeater)实现表格内容的增删查改(CRUD)
- Stepping on the pit: json Parse and json stringify
- Sd6.23 summary of intensive training
猜你喜欢

Meta agent model can be migrated to resist attacks

产品-Axure9(英文版),中继器(Repeater)实现表格内容的增删查改(CRUD)

山东大学项目实训(六)点击事件展示折线图

如何使用物联网低代码平台进行服务管理?

Fluent's MSH grid learning

JDBC knowledge

Chapter 02_ MySQL data directory

Request header field XXXX is not allowed by access control allow headers in preflight response

sql server备份以及还原的命令操作

Adobe Premiere foundation - opacity (matte) (11)
随机推荐
Data-* attribute usage
How to use the low code platform of the Internet of things for service management?
jdbc认识上手
Sword finger offer 34 Path DFS method for binary tree neutralization
深度学习---三好学生各成绩所占权重问题(2)
Fluent's MSH grid learning
Know that Chuangyu has helped the energy industry in asset management and was selected into the 2021 IOT demonstration project of the Ministry of industry and information technology
Redis bloom filter and cuckoo filter
MySQL -connector/j driver download
Chapter 02_ MySQL data directory
The table ‘table_name‘ is full 异常排查及解决方案
什么是多范式编程语言,其中的“多范式”是什么意思?
Markdown common fonts
Basis of data analysis -- prediction model
山东大学项目实训(八)设计轮播图进入页面
信息系统项目管理师---第七章项目成本管理历年考题
CentOS 7.5 install MySQL 8.0.27---yum
About microservices
JS-判断数组键名是否存在
数据仓库模型分层ODS、DWD、DWM实战