date.prototype.toIsStringメソッドは、次のようにES3ドキュメントではなくES5に追加されました。
この方法はIE6/7/8ではサポートされておらず、次のように修正できます
コードコピーは次のとおりです。
if(!date.prototype.toIsString){
date.prototype.toisostring = function(){
function pad(n){n <10を返しますか? '0' + n:n}
this.getutcentlyear() + ' - 'を返します
+ pad(this.getutcmonth() + 1) + ' - '
+ pad(this.getutcdate()) + 't'
+ pad(this.getutchours()) + ':'
+ pad(this.getutcminutes()) + ':'
+ pad(this.getutcseconds()) + '。'
+ pad(this.getutcmilliseconds()) + 'z';
}
}
関連している:
http://msdn.microsoft.com/zh-cn/library/ie/ff925953%28 = vs.94%29.aspx
https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/date