yuezhonghu

悠然现南山...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年4月1日

摘要: 保留小数点 的位数(四舍五入) toFixed(n) : 参数 n 保留的位数 转换为数字Number(n) : 参数 n 要转换的对象 判断非法字符isNaN(n) :参数 n 判断对象 选择上传图片出预览效果的JS :程序function showImg(path){var upload=path;document.getElementById("Image1").src=upload... 阅读全文

posted @ 2008-04-01 12:29 .狐狸血. 阅读(123) 评论(0) 推荐(0) 编辑