worklight无法在真实设备上要求DOJO Combobox -fail加载... /dijit/form/nls/it/ComboBox.js [英] worklight fail to require DOJO Combobox on real device -fail to load ... /dijit/form/nls/it/ComboBox.js

查看:130
本文介绍了worklight无法在真实设备上要求DOJO Combobox -fail加载... /dijit/form/nls/it/ComboBox.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dojo 1.8
Worklight 5.0.6

Dojo 1.8 Worklight 5.0.6

在浏览器和Android模拟器上都可以正常工作,但是如果我在真实的情况下执行应用程序,则解析不起作用。
这是Dojo.js

On Browser and android emulator all works, but if I execute the app on real the parse didn't works. This is Dojo.js

function dojoInit() {
require([ "dojo",

          "dojo/parser", "dojox/mobile", "dojox/mobile/compat",
          "dojox/mobile/ScrollableView", 
          "dojox/mobile/ScreenSizeAware",
          "dojox/mobile/FixedSplitter",
          "dojox/mobile/Container",
          "dojox/mobile/ComboBox"  
          ],

        function(dojo) {
            dojo.ready(function() {
            });
        });

}

这是浏览器的错误平板电脑:

This is browser's error on tablet:

xxx.26.81:8080/apps /services/preview/AcgTablet/common/0/default/dijit/form/nls/it/ComboBox.js Error dojo.js:26

但此错误不会出现在pc浏览器
但是文件夹中有!

but this error doesn't appear on pc browser But there are in the folder!

推荐答案

您可能正在使用Worklight V6?

You are probably using Worklight V6?

目前在Android设备上运行存在问题。您可以在此处找到解决方法: Worklight core-web-layer.js错误

There is an issue currently to run on Android devices. You can find the workaround here: Worklight core-web-layer.js errors

For your issue with running on Android, if you're using Worklight 6.0 with a new project, copy                the following files from the Dojo Library project that was created alongside the Worklight project:

toolkit/dojo/dojo/nls/core-web-layer_ROOT.js
toolkit/dojo/dojo/nls/mobile-ui-layer_ROOT.js

These files then must be added to your Worklight project's www/dojo/nls/ directory.

In addition to including the *_ROOT.js files, you may also need to remove the development      configuration from the application. To do this, open the Console view (Window > Show View > Other... > Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources. After this, build and deploy your application to your emulator or device.

这篇关于worklight无法在真实设备上要求DOJO Combobox -fail加载... /dijit/form/nls/it/ComboBox.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆