I am currently working on an AR project, and awe.js was recommended for me by many people because of how good it is. Is it possible to embed an awe.js app in a ruby on rails view?? Is there a better substitute??
我目前正在研究AR项目,很多人都推荐awe.js,因为它有多好。是否有可能在轨道视图中的红宝石中嵌入awe.js应用程序?还有更好的替代品吗?
1 个解决方案
#1
0
In your application.js file under javascript/assets you can use require statements (I suppose by coffee script syntax) like this:
在javascript / assets下的application.js文件中,你可以使用require语句(我想用咖啡脚本语法),如下所示:
//= require awejsfile
There, in awejsfile have all the code needed to run the awe.js commands in mind.
在那里,在awejsfile中包含了运行awe.js命令所需的所有代码。
#1
0
In your application.js file under javascript/assets you can use require statements (I suppose by coffee script syntax) like this:
在javascript / assets下的application.js文件中,你可以使用require语句(我想用咖啡脚本语法),如下所示:
//= require awejsfile
There, in awejsfile have all the code needed to run the awe.js commands in mind.
在那里,在awejsfile中包含了运行awe.js命令所需的所有代码。