获得easyUi dialog 对话框title的属性值

 1 <div id="dlg" class="easyui-dialog" title="Toolbar and Buttons" style="width:1040px;height:600px;padding:10px" 

 2             data-options="

 3                 

 4                 buttons: [{

 5                     text:'保存',

 6                     iconCls:'icon-ok',

 7                     handler:function(){

 8                         ChangeMessage();

 9                     }

10                 },{

11                     text:'关闭',

12                     handler:function(){

13                         alert('cancel');;

14                     }

15                 }]

16             ">

17 

18 

19         <table id="detail_table" iconCls="icon-save" title="My Window" style="width: 100%; height: 300; font-size: 14px;" class="table">

20     <tr>

21         <td align="right">编号</td>

22         <td align="left"><input id="MessageId" class="combo datebox" style="width:180px; height: 20px;" readonly="true"></td>

23         <td align="right">菜单名称</td>

24         <td align="left"><input id="MessageTitle" class="combo datebox" style="width:180px; height: 20px;"></td>

25         <td align="right">数据类型</td>

26         <td align="left">

27             <select id="MessageType" class="easyui-combobox" panelHeight="auto" style="width:180px" onchange="MessageType_change(this)">

28                 <option value="MODE">模块</option>

29                 <option value="MENU">菜单</option>

30                 <option value="TEXT">文本</option>

31             </select>

32         </td>

33     </tr>

34     <tr>

35         <td align="right">上级编号</td>

36         <td align="left"><input id="ParentID" class="combo datebox" style="width:180px; height: 20px;" readonly="true"></td>

37         <td align="right">创建人</td>

38         <td align="left"><input id="MessageAuthorId" class="combo datebox" style="width:180px; height: 20px;" value="admin" readonly="true"></td>

39         <td align="right">创建时间</td>

40         <td align="left"><input id="MessageDate" class="combo datebox" style="width:180px; height: 20px;" readonly="true"></td>

41     </tr>

42 

43 

44     <tr id="Content_textarea">

45         <td colspan="6">

46             内容&emsp;

47             <textarea class="ckeditor" cols="80" id="MessageContent_ckeditor" name="editor1" rows="10"></textarea>

48            

49         </td>

50     </tr>

51 @*    <tr id="Content_input">

52         <td>

53             内容

54         </td>

55         <td><input id="MessageContent" class="combo datebox" style="width:180px; height: 20px;"></td>

56         <td colspan="4"></td>

57     </tr>*@

58     <tr>

59         <td colspan="6">&emsp;</td>

60     </tr>

61 </table>

62     </div>

//调用
   alert($('#dlg').panel('options').title);

 

你可能感兴趣的:(easyui)