質問編集履歴

1

書き方が悪かったので例のコードを変更しました。

2019/11/14 09:26

投稿

bravo
bravo

スコア14

test CHANGED
File without changes
test CHANGED
@@ -4,13 +4,13 @@
4
4
 
5
5
  ```html
6
6
 
7
- <div class="test test-item-1">
7
+ <div class="test t1 test-item-1">
8
8
 
9
- <div class="test test-item-3">
9
+ <div class="test t3 test-item-3">
10
10
 
11
- <div class="test test-item-5">
11
+ <div class="test t8 test-item-5">
12
12
 
13
- <div class="test test-item-1">
13
+ <div class="test t2 test-item-1">
14
14
 
15
15
  ```
16
16
 
@@ -33,3 +33,9 @@
33
33
 
34
34
 
35
35
  このように"test"classを全て取得したあと、"test-item-*"classのみをすべて"test-item-2"などに書き換えたい場合、どう書くのが簡潔なのでしょうか?
36
+
37
+
38
+
39
+
40
+
41
+ 追記:申し訳ありません。書き方が悪かったので例のコードを変更しました。