toLocaleString()
Ojbect.toLocaleString()はオブジェクトを表す文字列をローカルの値で返します。
var obj = "sample";
obj.toLocaleString();//sample
var d = new Date();
d.toLocaleString();//2013/6/4 0:28:19
このメソッドはDate.toLocaleString()のように、現地表現が必要となるオブジェクトに継承するために用意されているので一般的には利用でしないでしょう。
登録日 : 2013年06月04日 最終更新日 : 2013年6月4日
同じカテゴリー(Object)のエントリー
- Object.create()
- Object.getPrototypeOf()
- Object.isFrozen()
- Object.freeze()
- Object.isSealed()
- Object.seal()
- Object.isExtensible()
- Object.preventExtensions()
- Object.getOwnPropertyDescriptor()
- Object.defineProperties()
- Object.defineProperty()
- keys()
- valueOf()
- toString()
- toLocaleString()
- propertyisEnumerable()
- isProtoTypeOf()
- hasOwnProperty
- constructor