<![CDATA[Stri's Blog]]> http://www.striblog.com/ 2010-9-7 1:12:48 Blog zh-cn Copyright (C),2009, Stri.PC <![CDATA[两个无聊的效果,在chrome中解释不一样]]> http://www.striblog.com/?p=27 第一个:
我在用日期对象写东西时发现的。
var stri=123456789;
var d=new Date();
var x={
x:function(){
alert((d.getTime()+stri-d.getTime()).toLocaleString());
}
};
x.x();

在IE和FF中可以将数字转换为:123,456,789.00(基本上实现了这个http://bbs.9demo.com/viewthread.php?tid=27&page=1#pid193第三题的转换),但chrome里却没有逗号。
第二个:


差别:在chrome中比较快。
]]>
http://www.striblog.com/?p=27#comment 541 Sat, 10 Oct 2009 16:14:15 +0800 http://www.striblog.com/?p=27