【发布时间】:2019-08-02 12:09:25
【问题描述】:
发展促成了这项工作!!
生产模式这个错误!!
如果你删除 FocusEvent,同样的错误。
Cannot read property 'value' of undefined
at e.preSaveMac (main.bundle.js:1)
at Object.handleEvent (main.bundle.js:1)
at Object.handleEvent (main.bundle.js:1)
at Object.handleEvent (main.bundle.js:1)
at Ji (main.bundle.js:1)
at main.bundle.js:1
at t.r [as _next] (main.bundle.js:1)
at t.__tryOrUnsub (main.bundle.js:1)
at t.next (main.bundle.js:1)
at t._next (main.bundle.js:1)
preSaveMac(event:FocusEvent){
this.additionSearchMAC = event.srcElement.parentElement.attributes["ng-reflect-model"].value;
$(event.srcElement).val(this.additionSearchMAC);
}
【问题讨论】:
标签: typescript angular5