jquery向下取整
2024-08-29 10:07:29
var currentMoney =Math.round((_memberCurrentPoints/_pointVsMoney)*Math.pow(10,2))/Math.pow(10,2) * 2;
$("#currentMoney").text(parseInt(currentMoney));
if(_memberCurrentPoints/_pointVsMoney <1){
$("#currentMoney").text("0"); }else{ $("#currentMoney").text(parseInt(currentMoney)); }
最新文章
- python队列Queue
- CoreAnimation方法汇总
- CSS 属性 - position讲解
- throw 子句
- 454. 4Sum II ——查找本质:hash最快,二分次之
- C# asp.net IIS 在web.config和IIS中设置Session过期时间
- ECSSHOP表结构
- hasshmap输出value
- 松瀚SN8P2501 定时器初始化程序--汇编源码
- 纯代码实现CSS圆角
- python 接口自动化测试--框架整改(五)
- cocos2dx - Sqlite简单封装使用
- 动态SQL中不同变量的写法总结
- SpringBoot 整合Dubbo
- 学习node.js的一些笔记
- windows与linux中的mysql配置主从
- .NET Entity Framework基本使用方法
- Spark机器学习中ml和mllib中矩阵、向量
- express框架之session 存储
- pytest 的 yield