map(3)
-
Spring boot Sencha 연동 파일 업로드 구성
Map을 통해서 응답 처리해야 함Case1@PostMapping("/location/upload")public ResponseEntity uploadFile(@RequestParam("file") MultipartFile file) { try { // Handle file storage Path path = Paths.get("uploads/" + file.getOriginalFilename()); Files.write(path, file.getBytes()); // Success response return ResponseEntity.ok(Map.of("success", true, "message", "File uploaded succ..
2024.12.26 -
Javascript array 복사하기
const seriesOrigin = [].concat(chart.getSeries()); // Wrap in an array if not already const seriesClone = seriesOrigin.map(series => Ext.clone(series.getInitialConfig()));
2024.12.13 -
Javascript array 및 map 처리
Ext.Array.each(selection, function (node) { if(node.getData().id.startsWith('extModel')) { node.remove(); } if(node.hasChildNodes()) { Ext.Msg.alert('Warning', '하위 record가 있으면 삭제할 수 없습니다!'); return; }});const selecteRecords = selection.map(record => record.getData());
2024.12.05