-2
爲什麼這不起作用?我在這裏瘋了,試圖找到我可能出錯的地方,但沒有想到。僅在Chrome中進行測試。當月解析問題的最後一天
var startString = "30.01.2017";
var endString = "31.01.2017";
// is OK
var startDate = moment(startString, "DD.MM.YYYY", 'bs',true).clone().toDate();
// breaks down
var endDate = moment(endtString, "DD.MM.YYYY", 'bs',true).clone().toDate();
// console dump
Uncaught ReferenceError: endtString is not defined
at HTMLDocument.<anonymous> (Kreiraj:1062)
at j (jquery.js:3094)
at Object.fireWith [as resolveWith] (jquery.js:3206)
at Function.ready (jquery.js:3412)
at HTMLDocument.I (jquery.js:3428)
我做錯了什麼?
endString而不是endTString? – Lacrioque
OMG,如果你只有2個小時的睡眠,就會發生這種情況....尷尬 – Dino
謝謝大家對於如此敏感 – Dino