我希望在我的Meteor应用程序中从文件中读取文本。
我正在使用Nitrous.io
这个应用程序叫做“myApp”,我正在使用以下代码:
var data = Assets.getText('myApp/lib/test.txt');
I get the following error:
Error: Unknown asset: /myApp/lib/test.txt
在这种情况下,我的test.txt文件的正确路径是什么?
我希望在我的Meteor应用程序中从文件中读取文本。
我正在使用Nitrous.io
这个应用程序叫做“myApp”,我正在使用以下代码:
var data = Assets.getText('myApp/lib/test.txt');
I get the following error:
Error: Unknown asset: /myApp/lib/test.txt