我正在关注下一篇文章:helm repo add hashicorp https://helm.releases.hashicorp.comError: looks like "https://helm.releases.hashicorp.com" is not a valid chart repository or cannot be reached: failed to fetch https://helm.releases.hashicorp.com/index.yaml : 405 Method Not Allowed
似乎回购是坏
我有一个函数,它有两个参数,像string和object,我想读取字符串并从对象中获取值,如下所示; 如果调用test(text, info)应该返回:I started school at age 6 in Russia 哪里 const text= 'I started school at age {info.age} in {info.country}
const info= {age: 6, country: Russia} 所以我写了这个函数来查找字符串中{}之间的子字符串,然后像这样从对象中获取它的值: const test = (str, object) =&