如图,负数在左边显示正数在右边,想让他显示的时候实际值不变,去掉负号,都显示成正数,如何修改
试试:
function() { if (this > 0) return this ; else return this * (-1) ;}