js,并愿意学习使用extdirect我遵循文档中包含的节点模块和这个页面:npmjs.org/package/extdirect,这是完全相同的事情,当我把firefox指向index.html我得到了这个错误在我的app.js第6行:
ReferenceError: extremte is not defined
Ext.direct.Manager.addProvider (ExtRemote.REMOTING_API);
不幸的是,在互联网上我没有找到很多例子也没有资源来学习如何使用extdirect与node.js,所以现在我卡住了,你能告诉我正确的方法与教程示例等。由于
在阅读了extdirect文档和一些相关的线程后,我认出了ExtRemote的定义。REMOTING_API来自服务器/directapi,它提供类似
的内容。Ext.ns("ExtRemote");ExtRemote.REMOTING_API={"url":"http://...
因此需要在index.html中,也许应该在文档中更好地强调,是像
这样的脚本导入<script src="/directapi"></script>
在Sencha Architect中,它可以作为JS资源添加到项目的资源中。
处理ReferenceError: ExtRemote未定义