回答編集履歴
1
前提条件が変わったため追記。
answer
CHANGED
@@ -1,3 +1,13 @@
|
|
1
1
|
```CoffeeScript
|
2
2
|
if x >=10 && x < 15 && $('li.no:first-child').length <1
|
3
|
+
```
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
**追記:**
|
8
|
+
|
9
|
+
|
10
|
+
```CoffeeScript
|
11
|
+
if x == 10 && $('li.no:first-child').length <1
|
12
|
+
else if x == 15 && $('li.no:nth-child(2)').length <1
|
3
13
|
```
|