- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试做的故事的较短版本:通过 cordova app loader. 在 cordova 运行时加载 Web 应用程序webapp 是基于 ExtJS 构建的
过程
在 android 和 iOS 上尝试时,iOS 版本运行良好,但 android 版本会抛出几个错误。
(index):1 Uncaught ReferenceError: start is not defined
at (index):1
(index):2 Uncaught ReferenceError: onHasParentDirectory is not defined
at (index):2
(index):3 Uncaught ReferenceError: addRow is not defined
at (index):3
(index):4 Uncaught ReferenceError: addRow is not defined
at (index):4
(index):5 Uncaught ReferenceError: addRow is not defined
at (index):5
(index):6 Uncaught ReferenceError: addRow is not defined
at (index):6
(index):7 Uncaught ReferenceError: addRow is not defined
at (index):7
(index):8 Uncaught ReferenceError: addRow is not defined
at (index):8
在进一步检查中,这似乎与 webview 在 android 中的工作方式以及它在哈希方面的问题有关。
来自链接的一些响应:- 问题是由于链接 (href) 带有前缀“/#/xxxx”而不是“#/xxxx”……-file:///android_asset/www/main.html#"+ strippedUrl; 其中 strippedUrl 表示原始 url,file:///转换为 just/并可能将/android_asset/www 转换为空字符串,似乎是 4.0 Webview 中与 html5 路由和以/开头的路径相关的问题。
引用链接:
https://gist.github.com/morganrallen/f955cc0312ae2cdbe9a5 https://forum.ionicframework.com/t/uncaught-referenceerror-addrow-is-not-defined/9266/3
为了尝试这种方法,我尝试实现 hashbang 方法,但应用程序在 android 中仍然失败。
谁能告诉我如何解决这些错误或可能的解决方案。
P.S:如果我在没有 ExtJS 路由的情况下工作,应用程序可以完美运行。错误不在 ExtJS 项目中。
感谢和问候
最佳答案
我通过指定带有 index.html 的路径解决了这个问题。
之前是
downloadedAppUrl = fileSystem.root.nativeURL + 'app';
现在我指定
downloadedAppUrl = fileSystem.root.nativeURL + 'app/index.html';
关于android - 无法通过 cordova app loader : addRow is not defined 在 cordova android 上加载 ExtJS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54088500/
我想让用户在数据网格中添加单元格。 当我添加一行。我要将行设置为“组”。 因此,“添加行”应位于每个组中。 有什么办法可以实现这一目标? 最佳答案 在添加行时,将相应的字段填充到需要添加新行的组中。
我正在尝试使用 ExcelJS 库将数据写入 Excel 文件。我成功地创建了工作表并添加了列数据。 但是,在尝试实现 addRow() 或 addRows() 方法时,数据不会添加到 Excel 工
我正在尝试使用 google API 绘制折线图。 但是图表没有绘制,我可以在 data.addRows(rows); 中识别出一些错误;因为此 data.addRows 行之后的警报不会弹出。 如果
我一直想知道为什么 jTable 默认情况下没有 .addRow() 方法。为什么您必须先设置模型才能实现此目的? JTable table = new JTable(); table.addRow(
我正在努力将 PHP 中的数据转化为图表。我在 1 个 php 页面上有以下代码片段。首先是简单的部分: $sql = "SELECT * FROM (SELECT timestamp, Curren
function addRow() { var medicinename = document.getElementById("medicinename"); var time = d
我有一个表,我想在列上使用自动完成功能。(medSearch为本栏目设置的类) 我使用 Jquery 的自动完成代码 autocomp_opt={ source: function(reque
我有以下生成 Google 图表的函数,但它不起作用: function drawChart(a) { alert(a.test); var data = ne
我有一个 Google 图表(列),它只会调用数据库中的行,并且该列是由我们定义的。但我遇到了一个问题..图表不会出来,你们所有人都能看到我的源代码有什么问题吗..?非常感谢你...! $qu
代码运行没有错误,但 JTable 没有出现。 import javax.swing.JTable; import javax.swing.table.DefaultTableModel; impor
我是开发领域的新手。这段代码有两个问题。首先,当我单击 add_Row 按钮时,屏幕上会添加一行,但它会在 1-2 秒后消失,同样的事情也会发生在 group_Create() 弹出窗口中。
我遇到的问题不仅仅是问题,希望您能帮助我找到可能的原因。 在一个非常简单的 JTable 中,我使用 DefaultTableModel。我在运行时以编程方式添加一行,如下所示: public voi
我在 MySQL 中有一些数据,必须检索这些数据并在 JTable 中显示。我为此编写的代码如下 PreparedStatement ps = con.prepareStatement("select
我正在尝试制作折线图,但当我尝试添加一行数据时,Google Charts 一直抛出此错误: Error: Every row given must be either null or an arra
我很好奇为什么 DefaultTableModel 有一个 public void addRow(Object[] rowData) 但是没有 public Object[] getR
我正在尝试使用 jqGrid Treegrid 的内联导航“添加新行”功能,但到目前为止我无法正确配置它。我已阅读与其相关的文档和其他帖子,但没有任何效果。我已经设置了 addRow 的选项,但是当我
我想在 data.AddRows 中使用变量作为字符串参数,如下所示... function LanguagesChart(Names, Nums) { var data = n
我正在尝试添加 ID 号为 3791318595 的行。 long l = 3791318595L; myTable.addRow(l,"testing"); 然而 Jackcess 将其转换为整数并
我在下面的解释是,归结起来,有没有一种方法可以在不触发事件的情况下添加行,这样我就可以添加多行并触发事件来一次更新所有行?无需添加代码来包含自定义模型中的表数据? 我有一个从 DefaultTable
我在 swing 中使用 JTable 来显示 MySQL 表,尽管表值存在于行对象中(如屏幕截图中的输出所示),但应用程序中的 jtable 是空的。屏幕截图中的输出包含 Object[] 数组,但
我是一名优秀的程序员,十分优秀!