//content属性要写在一行,有可能会遇到点击确定按钮不好使的情况 那就
换成
content: ‘
然后
添加自定义的按钮事件
function CheckBtn() {
$(".layui-layer-btn0").removeAttr(“class”).attr(“onclick”, “submit()”).css(“background-color”, “#1e9fff”);
}
function submit() {
event.stopPropagation();
}
function TextareaFontLength() {
var strTeatArea =
(
"
[
i
d
("[id
("[id=‘aaa’]").val().length;
(
"
[
i
d
("[id
("[id=‘span_Font_Length’]").text(strTeatArea);
}
function GoBack_Click() {
layer.prompt({
formType: 2,
value: ‘’,
title: ‘请输入修改原因’,
btn: [‘确定’, ‘取消’], //按钮,
btnAlign: ‘c’,
area: [‘300px’, ‘240px’],
content: ‘
}, function (value, index) {
}, function (value, index) {
});
}