我正在寻找一种在反应本机上通过文本元素制作对角线的方法。
使用 :after 元素和 css 这应该是可能的,但这在 React-Native 中不可用。
有人提出很酷的建议吗?
我在函数式编程游戏中有点迷失.
我有一个像这样的对象:
const answers = {1: 'first', 2:'second', 3:'third', 4:'fourth'}Run Code Online (Sandbox Code Playgroud)
我想将对象重塑为像这样的对象数组.
const arrayOfAnswers = [{1:'first'}, {2:'second'}, {3:'third'}, {4:'fourth'}]Run Code Online (Sandbox Code Playgroud)
达到此目的的简单解决方案是什么?