Skip to content

Instantly share code, notes, and snippets.

@hoosin
Created December 8, 2016 10:31
Show Gist options
  • Save hoosin/4e283baa88285ecc281665f7b72bbeb6 to your computer and use it in GitHub Desktop.
Save hoosin/4e283baa88285ecc281665f7b72bbeb6 to your computer and use it in GitHub Desktop.
getDay.js
var str = "今天是星期" + "日一二三四五六".charAt(new Date().getDay());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment