我正在使用JSFragment
在View中显示数据。 JSFragment(弹出)有几个按钮和列表。运行应用程序时,当我点击片段中的按钮时,它可以正常工作。但是,当我再次尝试进入弹出我收到错误消息:SAPUI5弹出窗口不会第二次打开
Uncaught TypeError: Cannot read property 'addStyleClass' of undefined adding element with duplicate id 'popoverNavCon--me
我已经在使用的片段定义this.createId()
很少提及到的ID。我无法找到我的错误。
您之前创建的您将需要使用createId的片段,以及。阅读[本]( https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/5da591c5a5a54740948acfe56b22fbc3.html)和[this](https://sapui5.netweaver.ondemand.com/sdk/#docs /guide/030fcd14963048218488048f407f8f34.html) –