mirror of https://github.com/layui/layui
更新 dropdown 示例
parent
b16706aa2c
commit
0bb33f66fd
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue