我从一个SharePoint库中拉出修改过的日期,并使用下面的代码进行转换: // split apart the date andmonth[getConvertedDate.getMonth()] +" "+getConvertedDate.getFullYear(); 然后,我尝试使用以下命令在不同项目的页面上显示此日期:
var getDate = getformattedDate(convertSPDate
最近,当我发现Number(undefined)等于NaN</code>, but if you do数字(未定义的) === NaNyou getfalse`‘时,我考虑定义一个函数来从无聊中复制NaN</code>, but if you do的功能。我甚至尝试了(typeof Number(undefined)) === (typeof NaN),它返回true。
JavaScript在这里做什么?