2
내 java Fx webview는 다음 코드에 대한 JS 예외를 throw합니다. 아무도 그 이유를 설명 할 수 있습니까?자바 FX의 webview에서 JS 예외가 발생 했습니까?
WebView webview = new WebView();
WebEngine webengine=webview.getEngine();
newtab.setText("Start Page");
newtab.setContent(webview);
editTabset.getTabs().add(newtab);
webengine.load("file:///E:/myproj/src/novuseditor/resources/html/clike.html");/*works till here*/
webengine.executeScript("document.getElementById('code').value=\"Hi\"");
/*exception:netscape.javascript.JSException: TypeError: 'null' is not an object */
많은 것들을 설명하는 와우 ... 고맙습니다. 세르게이 :) –