problem description
the table is as follows
demand is based on the table table, the eighth column of the number positive or negative change the color of the number display. For example,
the environmental background of the problems and what methods you have tried
golang is used in the background, and an array is passed to the front end, which needs to show the elements all the time. I don"t know much about js. I tried several methods but failed. I don"t know how to find all the elements in that column in the table table.
related codes
{{.ChangePercent24Hr}}</td>
<td>{{.VolumeUsd24Hr}}</td>
<td>{{.Vwap24Hr}}</td>
</tr>
{{end}}
</tbody>
</table>
I hope that all the positive numbers in the 24-hour up and down column will show red and the negative numbers will show green.
I don"t know much about js. I tried several methods without success. I would appreciate it under the guidance of God here. Thank you!