layer如何隱藏彈出層關閉的按鈕
需添加closeBtn :0即可
示例代碼如下:
layer.open({
content: '/Index5S',
area: ['900px', '450px'],
title: '2025年戰略目標',
type: 2,
closeBtn: 0,
success: function(layero, index) {
var i5s = setInterval(function () {
t5s -= 1;
layer.title(`2025年戰略目標,${t5s}秒后關閉`, index);
if (t5s == 0) {
layer.close(index);
clearInterval(t5s);
}
}, 1000)
}
})

浙公網安備 33010602011771號