layer.open({
type: 1,
title: ‘在線調試‘,
content: ‘這里是內容‘,
maxmin: true, //開啟最大,最小,還原按鈕,只有type為1和2時,才能設置
full: function() { //點擊最大化后的回調函數
console.log(‘這個是點擊最大化后的回調函數出發‘);
},
min: function() { //點擊最小化后的回調函數
console.log(‘這個是點擊最小化后的回調函數出發‘);
},
restore: function() { //點擊還原后的回調函數
console.log(‘這個是點擊還原后的回調函數出發‘);
}
})