Last active
December 18, 2016 12:24
-
-
Save is8r/70acc68bfbea469ab64dffc7bca8a49c to your computer and use it in GitHub Desktop.
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 characters
var input = this.root.querySelector('input') | |
var now = input.value | |
if(moment(now).isBetween(input.min, input.max)) { | |
//新しい値に変更する | |
} else { | |
//元の値に戻す | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment