Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
非常简单的javascript问题。
我有两个价值观value1 = 20和value2 = 30
value1 = 20
value2 = 30
如何将bigger_number具有较高数字的值分配给变量?
bigger_number
var bigger_number = Math.max(value1, value2);
一点谷歌搜索给出了Math.max的参考
例如:
Math.max([value1[,value2[, ...]]])
我有以下内容:
我已经通过列表实现了这一点。这需要大量的 CSS。我想添加标题(“操作系统”、“百分比”),这将需要更多的 CSS 技巧
使用表格可能更简单。
一般来说,首选方法是什么:表格还是 ul/list?