我有一个数组
Var choices = [a , b , c, d....];
我想使用:
builder.prompts.choice(session, "Select one: ", choices, builder.ListStyle.list);
但我不确定使用数组作为参数的正确格式。文档说
选择:{string[]} - 作为字符串数组的选择列表。
有人可以举例说明如何正确编码吗?
下面是一个例子:
var choices = ["Musician Explorer", "Musician Search"]
builder.Prompts.choice(session, "How would you like to explore the classical music bot?", choices);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句