Easyui中使用jquery或js動態添加元素時出現的樣式失效的解決方法 可以使用$.parser.parse();這個方法進行處理;
例如:
$.parser.parse();
表示對整個頁面重新渲染,渲染完就可以看到easyui原來的樣式了;
var targetObj = $("<input name='mydate' class='easyui-datebox'>").appendTo("#id");
$.parser.parse(targetObj);
表示重新渲染某個特定的組件。
參考:https://www.cnblogs.com/fsh1542115262/p/3835633.html
dialog: https://blog.csdn.net/weixin_42402763/article/details/83545816
dialog: https://blog.csdn.net/weixin_42402763/article/details/83545816