DoraHacks 发起人 Eric Zhang: 用累进税系统缓解二次方资助中的不平等问题(3)
时间:2021-07-13 10:27来源:未知 作者:admin 点击:
次
i ] = { vote : 0 , area : 0 , } } this . area = 0 } result() { for ( let i = 0 ; i this . projects . length ; i ++ ) { const p = this . projects [ i ] const s = ( p . area / this . area * 10000 ). toF
i] = {
vote: 0,
area: 0,
}
}
this.area = 0
}
result() {
for (let i = 0; i < this.projects.length; i++) {
const p = this.projects[i]
const s = (p.area / this.area * 10000).toFixed(2)
const r = [this.area, p.area, p.vote]
this.vote(i)
const d = Number((p.area - r[1]).toFixed(2))
const da = ((p.area / this.area
(责任编辑:admin) |
织梦二维码生成器
------分隔线----------------------------