将模块添加到 Titanium 时出现问题

发布于 2024-11-19 17:09:37 字数 477 浏览 8 评论 0原文

我正在尝试添加此模块

我已将 zip 文件添加到钛文件夹中,并且已将其解压缩。现在它有一个文件夹“Module”。我从该文件夹中取出了“com.ti.calendar”文件夹,并将其放入 Titanium 文件夹中。

现在我已经编辑了 tiapp.xml 并添加了以下几行:

com.ti.calendar

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

表情可笑 2024-11-26 17:09:37

这个问题就解决了。

我有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文