Skip to content

Instantly share code, notes, and snippets.

@ety001
Created December 15, 2016 04:27
Show Gist options
  • Save ety001/a535445e3b686c5c2a4a8f9ae75521c7 to your computer and use it in GitHub Desktop.
Save ety001/a535445e3b686c5c2a4a8f9ae75521c7 to your computer and use it in GitHub Desktop.
js计算日期
var day = parseInt( (trip_end_date - trip_start_date)/1000/3600/24 ) +1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment