Browse Source

更新 dropdown 示例

pull/1210/head
贤心 2 years ago
parent
commit
0bb33f66fd
  1. 5
      examples/dropdown.html

5
examples/dropdown.html

@ -167,7 +167,7 @@ layui.use('dropdown', function(){
var inst = dropdown.render({ var inst = dropdown.render({
elem: '#demo2' elem: '#demo2'
//,show: true // ,show: true
,data: [{ ,data: [{
title: 'menu item 1' title: 'menu item 1'
,href: '#1' ,href: '#1'
@ -185,6 +185,9 @@ layui.use('dropdown', function(){
return false; return false;
} }
} }
,ready: function(){
console.log(arguments);
}
}); });

Loading…
Cancel
Save