Here: JSFiddle. const nth = function(d) { if (d > 3 && d < 21) return 'th'; switch (d % 10) { case 1: return "st"; case 2: return "nd"; case 3: return "rd"; ...
確定! 回上一頁