Public Access
0
0

Добавить js/DOM/строка.md

This commit is contained in:
2026-04-24 08:40:36 +00:00
parent d3ccd2de37
commit be5351982d

20
js/DOM/строка.md Normal file
View File

@@ -0,0 +1,20 @@
# Работы со строками
- Получить путь баз файла
```js
fullPath = "/home/user/dir/report.json";
fullPath.substring(0,fullPath.lastIndexOf('/') + 1); // /home/user/dir/
```
- Получить только файл из пусти
```js
fullPath = "/home/user/dir/report.json";
fullPath.substring(fullPath.lastIndexOf('/') + 1); // report.json
```