Last active
January 3, 2016 14:39
-
-
Save zythum/8477617 to your computer and use it in GitHub Desktop.
Revisions
-
zythum revised this gist
Jan 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #用一个checkbox来做开关 flag = true; $('input[type=checkbox]').on 'click', ()-> flag = $(this).prop 'checked' #return -
zythum revised this gist
Jan 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #用一个checkbox来做开关 flag = true; $('[input=checkbox]').on 'click', ()-> flag = $(this).prop 'checked' #return -
zythum created this gist
Jan 17, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #用一个checkbox来做开关 flag = true; $('[input=checkbox]').on 'checked', ()-> flag = $(this).prop 'checked' #return #这个return 必须加,不如就呵呵了 #这个不算是问题,是需要注意的点