- 浏览: 10198 次
- 性别:
- 来自: 厦门
最新评论
文章列表
<script type="text/javascript">
var n="1279878236.3028233"
var re=/(\d{1,3})(?=(\d{3})+(?:$|\.))/g;
var n1=n.replace(re,"$1,");
document.write(n+"\r\n转成千分位后:"+n1);
</script>
1279878236.3028233 转成千分位后:1,279,878,236.3,028, ...
- 2012-01-13 15:22
- 浏览 3108
- 评论(0)
<script type="text/javascript">
function getRootPath()
{
var pathName = window.location.pathname.substring(1);
var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/'));
return window.location.protocol + '//' + window.location.host + ' ...
- 2012-01-12 23:39
- 浏览 6049
- 评论(0)