简体   繁体   English

为什么Rivets.js无法在移动设备上运行?

[英]Why is Rivets.js not working on mobile?

I have a webapp that I am converting to a mobile app using Cordova. 我有一个Web应用程序,正在使用Cordova转换为移动应用程序。 The only thing I can't seem to get working is rivets.js . 我似乎无法正常工作的唯一事情是rivets.js I have tried on an Android device, iOS device and in a browser on my computer and all I see throughout the pages are {} containing pointers to the data we want to show but not the actual data. 我已经在Android设备,iOS设备和计算机上的浏览器中进行了尝试,并且我在整个页面中看到的所有内容都是{}其中包含指向我们要显示的数据的指针,而不是实际数据。 I'm not sure if I'm missing some configuration or dependency or if rivets is knows to not work on mobile? 我不确定是否缺少某些配置或依赖项,或者是否知道铆钉无法在手机上使用? As far as I know there aren't any. 据我所知没有。 Anyone have an idea on what I may be missing or what may be causing this? 有人对我可能会丢失的东西或可能导致它的原因有想法吗?

The webapp is run through electron to create a desktop app that run on a Windows PC and that desktop app works without any issues. 该webapp通过electron运行,以创建在Windows PC上运行的桌面应用程序,并且该桌面应用程序可以正常工作。

Turns out that the issue was the code that actually bundled the data to the UI and some of the data itself was not included in the browserify bundle. 事实证明,问题在于将数据实际捆绑到UI的代码,而某些数据本身并未包含在browserify捆绑中。 Once I added those js files to the bundle it worked like a charm. 一旦我将这些js文件添加到捆绑包中,它就可以像魅力一样工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM