我正在使用react-leaflet在 String path1 = "C:\\Users\\yadavd2\\eclipse-workspace\\Test_Project\\Hello World\\ABC.bat";
URI u = new URI(path.trim().replaceAll("\\u0020","%20"));
File file = new File(u.getPath());
System.out.println("path1------>"+file.getPath());
String[] command = {"cmd.exe", "/C", "Start", path1};
Process p = Runtime.getRuntime().exec(command);
函数中创建一些多边形。
我需要后者访问其中一个并更改部分属性,例如更改 map()
或 fillCollor
fillOpacity
如何从其他组件访问其中一个创建的组件?