我为什么要犯这个错误?铬的控制台出错..。
Uncaught TypeError: Array.prototype.indexOf called on null or undefined
at indexOf (<anonymous>)
at Function.c.inArray (zepto.js:2)
at HTMLDivElement.<anonymous> (index.html:97)
at HTMLDivElement.j (zepto.js:2)
c.inArray @ zepto.js:2
(anonymous) @ in
我最近刚刚从foundation 3升级到了4,尽管我注意到我无法让zepto正常工作。我不断得到以下信息
Started GET "/js/vendor/zepto.js" for 127.0.0.1 at 2013-03-12 00:03:30 +1100
ActionController::RoutingError (No route matches [GET] "/js/vendor/zepto.js"):
我已经按照发球台上的说明进行了搜索,试图找到一个没有任何运气的解决方案。
这在我的页脚里
= javascript_include_tag :ap
我正在开发一个聊天机器人与僵尸框架和自然语言处理服务路易斯。
谁能在这里解释一下,如果你想让一个应用程序/聊天机器人根据前一个问题的上下文回答后续问题,正确的方法是什么?
让我来举个例子:
[me]: I want to buy a Ford car
[bot]: Here are the list of different cars we have....
[me]: what about a red one?
[bot]: sure! I added the red color to your car
[me]: I also want bluetooth
.....
正如你所看到的,如果
我正在用Node.js和创建我的第一个机器人,并且我试图弄清楚如何在对话框中将控制从一个方法传递到另一个方法。
在用于C#的中,非常简单:
context.Wait(NextMethodName);
其中,NextMethodName是在bot接收到下一个用户消息之后运行的方法的名称。
我试图在Node.js中做一件类似的事情。我有两个功能。第一个提示用户输入某项内容或单击一个按钮,第二个应该处理用户的输入。我正努力把控制权传递给第二个功能。
bot.dialog('subscribe', [
function (session) {
var card = new bu
编辑:
在查看源代码时,我在botbuilder.d.ts中找到了以下内容。在瀑布中,您似乎不需要显式地调用endDialog?
/* You can terminate a waterfall early by either falling through every step of the waterfall using
* calls to `skip()` or simply not starting another prompt or dialog.
*
* __note:__ Waterfalls have a hidden last step which will auto