2

当发现React.js中的memoized以为是拼写错误,但是本着小心求证的心态还是去百度翻译有道查了下词典。发现果然是拼写错了。

最后经过多番查找发现memoize是专门用于计算结果的存储。英文词典没有这个单词的收录。

As verbs the difference between memorize and memoize is that memorize is to learn by heart, commit to memory while memoize is (computing) to store (the result of a computed expression) so that it can be subsequently retrieved without repeating the computation.
作为动词,memorize和memoize的区别在于,memorize是背诵,致力于熟记,而memoize(计算)是存储(计算表达式的结果),以便在不重复计算的情况下随后检索。

memoized [ˈmeməˈaɪzd]
memorized [ˈmeməraɪzd]


现刻
173 声望0 粉丝

勤思笃行