Appcelerator Titanium 模块 TiJSPDF
Appcelerator Titanium module TiJSPDF
我想在我的 Titanium 项目中使用这个模块:https://github.com/AppWerft/TiJSPDF
要安装,我刚刚在我的项目中复制了文件夹'modules',并在tiapp.xml中添加了它。
当我尝试使用它时:
require('ti.jspdf');
var doc = new jsPDF();
我收到以下错误:
- Message: Uncaught ReferenceError: jsPDF is not defined
我想我没有正确使用这个模块。你能帮我吗 ?
因为这是一个 javascript 模块而不是编译模块,所以将它放在 alloy 项目的 app/lib 文件夹中。请在此处查看有关 Javascript 模块的文档:http://docs.appcelerator.com/platform/latest/#!/guide/CommonJS_Modules_in_Titanium-section-src-29004791_CommonJSModulesinTitanium-JavaScriptModules
我想在我的 Titanium 项目中使用这个模块:https://github.com/AppWerft/TiJSPDF
要安装,我刚刚在我的项目中复制了文件夹'modules',并在tiapp.xml中添加了它。
当我尝试使用它时:
require('ti.jspdf');
var doc = new jsPDF();
我收到以下错误:
- Message: Uncaught ReferenceError: jsPDF is not defined
我想我没有正确使用这个模块。你能帮我吗 ?
因为这是一个 javascript 模块而不是编译模块,所以将它放在 alloy 项目的 app/lib 文件夹中。请在此处查看有关 Javascript 模块的文档:http://docs.appcelerator.com/platform/latest/#!/guide/CommonJS_Modules_in_Titanium-section-src-29004791_CommonJSModulesinTitanium-JavaScriptModules