本文介绍了在2.2运行Android undefined_methodError上较少的CSS code在PhoneGap的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了一些日常相当时间计算器。这个地方真是太棒了!

I spend quite some time everyday on stackoverflow. This place is really great!

但是,这是我的第一个问题,所以关于它的每一个建议是非常值得欢迎的:)

But this is my very first question, so every advice about it is very welcome :)

我在移动应用程序中使用PhoneGap的工作。我少用CSS和它工作正常在我的关系5,但我在的Andr​​oid 2.2与少在我的旧的HTC Desire错误:

I'm working on a mobile app using phonegap. I use less css and it works fine on my nexus 5, but I have an error related to less on my old htc desire under android 2.2 :

undefined_methodError:对象功能(A,B){回复B的instanceof  数组a = this.flatten(B,A):a.push(b)中,}有没有办法绑定

在index.less就行空列0:

in index.less on line null, column 0:

1 //常量

最后一行是在我的index.css文件的第一行

The last line is the first line in my index.css file.

我一直在寻找在谷歌和这里两天,我没有发现任何东西。

I've been looking on google and here for two days and I don't find anything.

下面是我的index.html code:

Here is my index.html code:

<html>
    <head>
        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet/less" type="text/css" href="app/index.less" />
        <script type="text/javascript" src="phonegap.js"></script>
        <script type="text/javascript" src="lib/async.js"></script>
        <script type="text/javascript" src="lib/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="lib/handlebars.js"></script>
        <script>
            less = {
                log_level: 1
            }
        </script>
        <script type="text/javascript" src="lib/less-1.5.0.min.js"></script>
        <title>Kwali.to</title>
    </head>
    <body>

        <script type="text/javascript" src="app/index.js"></script>
    </body>
</html>

我需要的客户端,因为我有很多的大小是依赖于屏幕分辨率上的编译少code。

I need to "compile" the less code on the client because I have many sizes that are dependent to the screen resolution.

我真的不知道如何解决这个问题,我希望这不是不兼容的只是我太旧的Andr​​oid事情......

I really have no idea how to solve this and I hope it's not just a matter of incompatibility with my too old android...

如何解决此问题?我能做些什么让我的code的工作?任何帮助将AP preciated:)

How to solve this? What can I do to make my code work? Any help will be appreciated :)

感谢你们!

推荐答案

请参阅减浏览器支持。即少需要一个ES-5兼容的JavaScript环境中运行。你可以用 ES5,垫片 polyfill这将添加JavaScript功能较少的需要。

See "Less Browser Support". I.e. Less requires an ES-5 compatible JavaScript environment to run in. You can use es5-shim polyfill which will add the JavaScript features that Less requires.

这篇关于在2.2运行Android undefined_methodError上较少的CSS code在PhoneGap的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 07:16