首页 > 最近在用webcomponents 发现一个问题 手机端uc浏览器10不能使用 求调试方法

最近在用webcomponents 发现一个问题 手机端uc浏览器10不能使用 求调试方法

  1. 描述你的问题

    我的手机测试系统 android 5.1 
    测试浏览器有 weixin 6.3 内置浏览器 uc qq 6
    最近在用webcomponents 发现一个问题 uc浏览器10不能使用 求解
    
  2. 贴上相关代码
    相关文章地址

(function() {
    let template = `
        <style>
            .container {
                color: lightpink;
            }
        </style>
        <div class="container">
            <div class="layout flex horizontal">
                <div class="layout__item">hihi</div>
                <div class="layout__item"><content></content></div>
            </div>
        </div>
    `;
    class DateWidget extends HTMLElement {

        // Fires when an instance of the element is created.
        createdCallback() {
            this.createShadowRoot().innerHTML = template;
        };
        // Fires when an instance was inserted into the document.
        attachedCallback() {
        };
        // Fires when an attribute was added, removed, or updated.
        attributeChangedCallback(attrName, oldVal, newVal) {

        };
    }
    document.registerElement('date-widget', DateWidget);
})();
  1. 贴上报错信息
    如果有调试方法就好了

  2. 贴上相关截图
    如果有调试方法就好了

  3. 已经尝试过哪些方法仍然没解决(附上相关链接)
    如果有调试方法就好了


调试你可以去看下http://www.browsersync.cn/这个工具。可以在电脑端远程调试手机上的网页,我试过在电脑上调试IOS里面的微信浏览器,不过我没有试过uc.感觉应该可行。

【热门文章】
【热门文章】