嗨,当我试图关闭模式窗口时,我得到了下面的异常。
TypeError: Cannot read property 'ng339' of undefined我使用的是angular 1.3和ui-bootstrap 0.12。当我在modal中使用highcharts-ng指令时,我得到了这个错误。不确定哪里出了问题。
<div class="modal-large">
<div class="modal-header">
<button class="close" type="button" data-ng-click="previewReport.closeModal()"> </button>
<h3 class="modal-title" data-ng-bind="previewReport.header"></h3>
</div>
<div class="modal-body">
<div class="ctf-content">
<div data-ng-if="previewReport.chartConfig !== undefined && previewReport.chartConfig !== null">
<data-highchart config="previewReport.chartConfig"></data-highchart>
</div>
</div>
</div>
它只是在这里出了故障
function removeAfterAnimate(domEl, scope, emulateTime, done) {在线
domEl.remove();错误堆栈..
at jqLiteRemoveData (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:2488:26)
at jqLiteDealoc (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:2457:7)
at forEach.remove (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:3097:5)
at Object.JQLite.(anonymous function) [as remove] (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:3182:17)
at afterAnimating (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:28874:17)
at http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:14487:28
at completeOutstandingRequest (http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:4504:10)
at http://ashik-lt7.maa.corp.collab.net:8080/ctf/js/all-in-one.js:4804:7 发布于 2014-12-04 19:56:47
当我发现这个问题时,关闭它是因为previewReport是未定义的,并且是“previewReport.chartConfig”,在这里失败。
https://stackoverflow.com/questions/27280281
复制相似问题