mirror of
https://gitee.com/layui/layui.git
synced 2025-10-26 10:49:18 +08:00
更新 dropdown 示例
This commit is contained in:
@@ -167,7 +167,7 @@ layui.use('dropdown', function(){
|
||||
|
||||
var inst = dropdown.render({
|
||||
elem: '#demo2'
|
||||
//,show: true
|
||||
// ,show: true
|
||||
,data: [{
|
||||
title: 'menu item 1'
|
||||
,href: '#1'
|
||||
@@ -185,6 +185,9 @@ layui.use('dropdown', function(){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
,ready: function(){
|
||||
console.log(arguments);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user