EasyUI 中 MenuButton 的使用方法_jquery

WBOY
Release: 2016-05-16 17:51:59
Original
870 people have browsed it

具体操作实现方法:
Html 代码:

复制代码代码如下:

批量设置列宽

宽度 80px

宽度 100px

宽度 120px


自定义列宽



js:
复制代码代码如下:

//初始化
var ddlMenu = $('#a4').menubutton({ menu: '#cusmenu' });
//menubutton 依赖于 menu、linkbutton 这两个插件,所以我们可以这样搞定她
$(ddlMenu.menubutton('options').menu).menu({
onClick: function (item) {
//item 的相关属性参见API中的menu
alert(item.text);
}
})

好了。今天就到这里
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!