我正在尝试使用 alpha 获取颜色的 rgb 值,这意味着使用不同的红色、绿色和蓝色值使其完全不透明。
例如,
Color.argb(204, 40, 40, 40) // I have this color
Color.rgb(48, 48, 48) // I expect this value
Run Code Online (Sandbox Code Playgroud)
我试过将 argb 转换为 HEX,然后将 HEX 转换为 rgb,但不起作用。
我有这个:
<table>
<tr>
<th>Name:</th>
<td>Carlos</td>
</tr>
<tr>
<th>Age:</th>
<td>22</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
我需要一个 JSON 格式。
{"Name":"Carlos","Age": 22}
Run Code Online (Sandbox Code Playgroud)
我试过https://github.com/lightswitch05/table-to-json但它不适用于每一行的标题:(