質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```ここに言語を入力
|
4
4
|
const path = location.pathname;
|
5
|
-
// pathには/hoge/abc123_def567
|
5
|
+
// pathには/hoge/abc123_def567が取れる想定です
|
6
6
|
```
|
7
7
|
その中で後ろのabc123_def567の _ 前の値(abc123)を取得し変数に格納したいです。
|
8
8
|
|