Skip to content

Instantly share code, notes, and snippets.

@leohxj
Created August 20, 2013 03:03
Show Gist options
  • Save leohxj/6276662 to your computer and use it in GitHub Desktop.
Save leohxj/6276662 to your computer and use it in GitHub Desktop.
取整
videoDuration = parseInt(video.duration);
videoDuration = video.duration.toFixed(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment