冒号在这里是什么意思?
What does the colon mean here?
查看示例 SearchKit 代码(使用 react/jsx 和 es2015 编写),我在 jsx 文件中看到以下行:
const source:any = _.extend({}, result._source, result.highlight)
source
和 any
do/mean 之间的冒号是什么?
它看起来像 TypeScript typehint。这表明变量source
可以是any
类型。
查看示例 SearchKit 代码(使用 react/jsx 和 es2015 编写),我在 jsx 文件中看到以下行:
const source:any = _.extend({}, result._source, result.highlight)
source
和 any
do/mean 之间的冒号是什么?
它看起来像 TypeScript typehint。这表明变量source
可以是any
类型。