Skip to content

Instantly share code, notes, and snippets.

View zyqq's full-sized avatar
:octocat:
Focusing

Echo zyqq

:octocat:
Focusing
View GitHub Profile
Markdown 6 h 39 m █████▌░░░░░░░░░░░░░░░ 26.5%
Vue.js 6 h 36 m █████▌░░░░░░░░░░░░░░░ 26.3%
JSON 4 h 20 m ███▌░░░░░░░░░░░░░░░░░ 17.3%
JavaScript 4 h 9 m ███▍░░░░░░░░░░░░░░░░░ 16.6%
TypeScript 1 h 23 m █▏░░░░░░░░░░░░░░░░░░░ 5.5%

1. 计算两个日期的天数差

函数模板

function daySpan (date1, date2) {
  // your code
}

函数参数