質問編集履歴
1
each(function)に入っていたsortを削除しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
↓この部分でeach(function())に引数をいれてeach以降にでてくる$(this)を削除する方法を教えてほしいです。
|
2
2
|
```
|
3
3
|
} else {
|
4
|
-
$(".list").find("li").each(function(
|
4
|
+
$(".list").find("li").each(function() {
|
5
5
|
if($(this).data('category-type') === cateVal) {
|
6
6
|
$(this).show();
|
7
7
|
} else {
|