//html按钮如下:
<a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">easyui</a>
//我们要获取上面的data-options值,代码如下:
var op = $('#btn').linkbutton("options");
icon=op.iconCls; //获取图标
text=op.text; //获取按钮文字
上一篇:jquery实现TP5与bootstrap4的分页样式整合
下一篇:easyui dialog 自适应、底部按钮、关闭按钮、加载内容
讨论数量:0