easyui 获取自定义的属性
需要打开dialog的时候,href是一个单独的html,在html加载完的时候,获取一个传进来的自定义的一个属性值。
自定义了一个alarmtype。
$("#testDlg").dialog({href: 'alarmControlInfo.html',iconCls : "my-custom-icon",alarmtype : type, }).dialog('open');
alarmControlInfo.html获取如下
<script>$(document).ready(function () {console.log("ssssssssssss");console.log("alarmtype:", $("#testDlg").dialog("options").alarmtype)});</script>
$("#testDlg").dialog("options").alarmtype 其他组件也是同理