HTML元素未显示在源页面中

时间:2018-07-16 23:30:13

标签: javascript android html google-chrome unity3d

当用户在Unity Android应用程序中打开应用程序内浏览器时,我试图通过javascript编辑HTML元素。我在台式机上测试了javascript代码,该代码可以运行,但是只能通过检查页面来实现。检查手机上的源代码后,我发现我尝试编辑的div元素未显示在源页面中。
源页面

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
        <meta property="og:title" content="Send me money with bunq.me" />
        <meta property="og:description" content="bunq - bank of the free" />
        <meta property="og:image" content="http://www.bunq.me/assets/img/preview-square.png" />
        <meta property="og:image:secure_url" content="https://www.bunq.me/assets/img/preview-square.png" />
        <meta property="og:image" content="http://www.bunq.me/assets/img/preview-landscape.png" />
        <meta property="og:image:secure_url" content="https://www.bunq.me/assets/img/preview-landscape.png" />
        <meta property="og:image:type" content="image/png" />
        <meta name="description" content="Send me money with bunq.me" />

        <title>bunq.me</title>

        <link rel="stylesheet" href="/dist/20180703/style.min.css" />
        <script type="text/javascript" data-main="/dist/20180703/main.js" src="/assets/js/lib/require/require.js"></script>

        <link rel="shortcut icon" href="/img/bunqone/icons/favicon.ico" type="image/ico" />

        <link rel="apple-touch-icon-precomposed" sizes="57x57" href="/assets/img/icons/apple-touch-icon-57x57.png" />
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/img/icons/apple-touch-icon-114x114.png" />
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/img/icons/apple-touch-icon-72x72.png" />
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/img/icons/apple-touch-icon-144x144.png" />
        <link rel="apple-touch-icon-precomposed" sizes="60x60" href="/assets/img/icons/apple-touch-icon-60x60.png" />
        <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/assets/img/icons/apple-touch-icon-120x120.png" />
        <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/assets/img/icons/apple-touch-icon-76x76.png" />
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/assets/img/icons/apple-touch-icon-152x152.png" />
        <link rel="icon" type="image/png" href="/assets/img/icons/favicon-196x196.png" sizes="196x196" />
        <link rel="icon" type="image/png" href="/assets/img/icons/favicon-96x96.png" sizes="96x96" />
        <link rel="icon" type="image/png" href="/assets/img/icons/favicon-32x32.png" sizes="32x32" />
        <link rel="icon" type="image/png" href="/assets/img/icons/favicon-16x16.png" sizes="16x16" />
        <link rel="icon" type="image/png" href="/assets/img/icons/favicon-128x128.png" sizes="128x128" />

        <meta name="application-name" content="bunq.me" />
        <meta name="msapplication-TileColor" content="#FFFFFF" />
        <meta name="msapplication-TileImage" content="/assets/img/icons/mstile-144x144.png" />
        <meta name="msapplication-square70x70logo" content="/assets/img/icons/mstile-70x70.png" />
        <meta name="msapplication-square150x150logo" content="/assets/img/icons/mstile-150x150.png" />
        <meta name="msapplication-wide310x150logo" content="/assets/img/icons/mstile-310x150.png" />
        <meta name="msapplication-square310x310logo" content="/assets/img/icons/mstile-310x310.png" />
    </head>
    <body>
        <div id="app">

        </div>
    </body>
</html>

检查

enter image description here

是否甚至可以编辑这些元素,还是出于安全原因而没有故意显示它们?

0 个答案:

没有答案