当前位置:网站首页>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
}
});
边栏推荐
- JDBC knowledge
- 数据仓库模型分层ODS、DWD、DWM实战
- JS-判断数组键名是否存在
- 2. 在STM32CubeMX建立的Keil5工程中添加自定义的相关文件
- The strategy of convertible bonds -- - (cake sharing, premium, forced redemption, downward revision, double low)
- Redis(一)--Redis入门(1)--Redis介绍、安装与启动、常用配置
- unittest单元测试框架
- postgis 生成 图形切割
- Markdown common fonts
- Shell基本语法--流程控制
猜你喜欢

garbage collector

Request header field XXXX is not allowed by access control allow headers in preflight response
![[Nanjing University] information sharing of the first and second postgraduate entrance examinations](/img/0d/a6392e6b92bb689e90c038ffac9dd8.jpg)
[Nanjing University] information sharing of the first and second postgraduate entrance examinations

元素等待机制

深度学习---三好学生各成绩所占权重问题(2)

Deep learning --- the weight of the three good students' scores (2)

关于微服务

How to use an oak camera as a webcam?

Apache inlong million billion level data stream processing

jdbc_相关代码
随机推荐
面霸篇:MySQL六十六问,两万字+五十图详解!
Sd6.22 summary of intensive training
山东大学项目实训(七)添加导航栏选择城市
Understanding of strong caching and negotiation caching
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
centos 7.5安装mysql 8.0.27----yum
Travel card "star picking" hot search first! Stimulate the search volume of tourism products to rise
How to use idea?
1. 使用STM32CubeMX建立STM32G030C8T6项目工程
Apache Doris basic usage summary
JDBC Codes connexes
程序员资源推荐指南
isalpha()方法介绍
JS converts seconds to "2h30min50s" format
金鱼哥RHCA回忆录:DO447构建高级作业工作流--创建工作流作业模板并启动工作流作业
The 8th "Internet +" competition - cloud native track invites you to challenge
6.29模拟赛总结
面试题 10.10. 数字流的秩
【网络是怎么连接的】第三章 探索集线器,交换机和路由器
postgis 生成 图形切割