Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript没有';我不能在安卓系统中工作_Javascript_Android - Fatal编程技术网

Javascript没有';我不能在安卓系统中工作

Javascript没有';我不能在安卓系统中工作,javascript,android,Javascript,Android,似乎javascript在我的Android浏览器中不起作用 (我的设备有安卓4.0.3)。我从浏览器设置中看到 该javascript已启用 不过,没有出现警报 如果我在桌面上运行该页面,它可以正常工作。 你知道为什么吗? 谢谢 消息 警报(“测试”) 您能不能从您的问题中删除大部分标记,这样我们就可以在不滚动的情况下看到有问题的JS语句?请只显示重现问题所需的最小值。它在android手机的chrome浏览器中工作吗?如果没有-控制台中是否有错误?是否尝试在自己的Web视图中显示该页面

似乎javascript在我的Android浏览器中不起作用 (我的设备有安卓4.0.3)。我从浏览器设置中看到 该javascript已启用

不过,没有出现警报

如果我在桌面上运行该页面,它可以正常工作。 你知道为什么吗? 谢谢


消息

    警报(“测试”)
    您能不能从您的问题中删除大部分标记,这样我们就可以在不滚动的情况下看到有问题的JS语句?请只显示重现问题所需的最小值。它在android手机的chrome浏览器中工作吗?如果没有-控制台中是否有错误?是否尝试在自己的Web视图中显示该页面?您是否调用了
    webview.getSettings().setJavaScriptEnabled(true)?不是Droidman。它是一个浏览器
    
    <!DOCTYPE html>
    <html>
    <head>
        <title></title>
        <meta name=viewport content="user-scalable=no,width=device-width" />
        <link rel=stylesheet href="css/jquery.mobile-1.3.2.css" />
        <script src="js/jquery-1.9.1.min.js"></script>
        <script src="js/jquery.mobile-1.3.2.js"></script>
    </head> 
    <body margin=0> 
        <section data-role="page">
            <header data-role="header"></header>
            <section data-role="content" id="content">
                <div>
                    <input type="text" name="message" id="message">
                    <label for="message" id="lblmessage">Message</label>
                    <a href="#" id="btnmessage" data-role="button" data-icon="check" data-inline="true"></a>
                </div>
                <br />
                <div>
                    <ul id="containermsg" data-role="listview"></ul>
                </div>
            </section>
            <footer data-role="footer"></footer>
        </section>
        <script type="text/javascript">
        alert('test')
        </script>