1、abs()
var aaa=-20;
var bbb=Math.abs(aaa);
2、负负得正
var bbb=-aaa
绝对值
js(javascript)如果去掉 px单位,转化成整型
Tagsystems: performance tests
You must be logged in to post a comment.
近期评论