更新 dropdown 示例

pull/1203/head
贤心 2023-02-16 09:45:57 +08:00
parent 105540efb8
commit 78609d9745
1 changed files with 7 additions and 3 deletions

View File

@ -172,14 +172,18 @@ layui.use('dropdown', function(){
title: 'menu item 1'
,href: '#1'
},{
title: 'menu item 2'
title: 'menu item 2(点击不关闭)'
,href: '#2'
,id: 'bbb'
},{
title: 'menu item 3'
,href: '#3'
}]
,click: function(){
,click: function(data, othis){
console.log(data);
if(data.id === 'bbb'){
return false;
}
}
});