Using easyui as the front-end framework greatly saves project resources. The easyui official documentation basically contains all the methods, but some flexible method documents cannot be found, for example, to dynamically Replace the properties of a window, the following describes how to quickly Replace the title attribute of a form.
1. directly replace the Panel attribute
Example: $ ('# dr_auth'). Panel ({Title: "New title "});
All Forms inherit the methods in panel, so they can be used directly.
2. Replace attributes with specific forms
Example: $ ('# dr_auth'). Dialog ({Title: "New title "});
This method is not recommended because the page will be reloaded.
Add the following method to obtain the Form title or other attributes:
VaR opts = $ ('# dr_auth'). Panel ('options'); var Title = opts. Title; // obtain the title attribute
Easyui dynamic modification window title