Http://blog.csdn.net/liu251890347/article/details/39292307?utm_source=tuicool
Using Easyui as the foreground framework greatly saves the project resources, Easyui the official website document contains basically all the methods, but some flexibility of the method document is not found, such as dynamic replacement window properties, below a brief introduction to how to quickly replace the title property of the form.
1. Replace Panel properties directly
For example: $ (' #dr_auth '). Panel ({title: "new title"});
All forms inherit the methods in the panel, so they can be used directly.
2. Replace attributes with specific forms
For example: $ (' #dr_auth '). Dialog ({title: "new title"});
This usage is not recommended because it causes the page to reload.
Add the method that gets the form title or other properties:
[JavaScript] view Plaincopyprint?
- var opts = $ (' #dr_auth '). Panel (' Options ');
- var title = Opts.title; //Get Title Property
Easyui Dynamic Modification window title