当前位置:网站首页>layer. prompt
layer. prompt
2022-06-29 18:56:00 【Hang Hang Dad】
layer.open({
//formType: 2,// It is still specified here that the type is a multiline text box , But down there content You can also bind a multi line text box to insert a code slice here
title: ' Are you sure to temporarily charge the account number ?',
area: ['300px', '240px'],
btnAlign: 'c',
closeBtn:'1',// The closing in the upper right corner
content: `<div><p> remarks :</p><textarea name="txt_remark" id="remark" style="width:200px;height:80px;"></textarea></div>`,
btn:[' confirm ',' Cancel ',' close '],
yes: function (index, layero) {
var value1 = $('#remark').val();// Get the value of the multiline text box
alert(' You just entered :' + value1);
layer.close(index);
// You can execute the OK button event and send the comment information ( That is, the multi line text box value ) Deposit where needed
},
no:function(index){
alert(' You just clicked the Cancel button ');
layer.close(index);
return false;// Click the button to return without closing the spring layer false
},
close:function(index){
alert(' You just clicked the close button ');
return false;// Click the button to return without closing the spring layer false
}
});
边栏推荐
- Understanding of strong caching and negotiation caching
- unittest单元测试框架
- jdbc认识上手
- [tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction
- Sister Juan takes you to learn database -- 5-day sprint Day1
- selenium的跨浏览器测试
- 第三方工具與框架集成
- svg画圆路径动画
- Data analysis time series prediction
- MySQL Enterprise Development Specification
猜你喜欢
随机推荐
JS-判断数组键名是否存在
数据分析--时间序列预测
postgis 生成 图形切割
Data warehouse model layered ODS, DWD, DWM practice
Adobe Premiere foundation - cool text flash (14)
Svg circle drawing path animation
美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
What is a multi paradigm programming language and what does "multi paradigm" mean?
js文本粒子动态背景
产品-Axure9(英文版),中继器(Repeater)实现表格内容的增删查改(CRUD)
markdown常用字体
Redis bloom filter and cuckoo filter
535. encryption and decryption of tinyurl / Jianzhi offer II 103 Minimum number of coins
Chapter 02_ MySQL data directory
JWT登录验证
AMAZING PANDAVERSE:META”无国界,来2.0新征程激活时髦属性
The 8th "Internet +" competition - cloud native track invites you to challenge
数据仓库模型分层ODS、DWD、DWM实战
[tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
Selenium的各类API方法








