将模块添加到 Titanium 时出现问题
我正在尝试添加此模块。
我已将 zip 文件添加到钛文件夹中,并且已将其解压缩。现在它有一个文件夹“Module”。我从该文件夹中取出了“com.ti.calendar”文件夹,并将其放入 Titanium 文件夹中。
现在我已经编辑了 tiapp.xml 并添加了以下几行:
我在 app.js 中添加了以下行:
var Calendar = require('com.ti.calendar');
它总是说找不到 com.ti.calendar。
谁能告诉我我在这里做错了什么?
谢谢!
杰乌
I am trying to add this module.
I have added the zip file in the titanium folder, and i have unzipped it. Now it has a folder "Module". I have taken the folder "com.ti.calendar" from that folder and I placed that one in the Titanium folder.
Now I have edited my tiapp.xml and added the following lines:
<module version="0.1">com.ti.calendar</module>
I added the following line in my app.js:
var Calendar = require('com.ti.calendar');
It always says that it can't find com.ti.calendar.
Can anyone tell me what I'm doing wrong here?
Thanks!
Tjeu
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题就解决了。
我有 2 个应用程序支持文件夹,一个在根目录下,一个在用户目录下。我正在使用用户下的那个,但这是错误的。
This question is solved.
I had 2 application support folders, one under the root and one under Users. I was working with the one under users, which was the wrong one.