调整IE不兼容的问题, 支持IE10以上
This commit is contained in:
maplemei
2019-09-23 15:46:57 +08:00
parent 415cd9ac4d
commit 4c5d0dcccb
5 changed files with 33 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ class xmOptions {
*/
update(options = {}, isNew){
//记录最新的配置项
this.options = Object.assign(this.options, options);
this.options = {...this.options, ...options};
//如果dom不存在, 则不进行渲染事项
let dom = selector(this.options.el);