Giter VIP home page Giter VIP logo

alloylever's People

Contributors

bryant1410 avatar dntzhang avatar lukasdrgon avatar mirreal avatar southill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alloylever's Issues

Error: Uncaught InvalidStateError

使用F5自动刷新工具起本地服务,页面加载的时候就会出现下面的报错,换另外的本地服务,xhr请求的时候会报下面的错,请问是什么原因导致的?

Error: Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable. Script: http://192.168.172.126/alloy_lever.js Line: 2950 Column: 24 StackTrace: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

Powered By Nuclear 能去掉吗?

每次点击AlloyLever 想看调试输出 都会碰到Powered按钮跳转到 github。太影响体验了

要不把链接去掉 要不直接隐藏掉吧

config中的vconsole地址配置不生效

/*!
 *  AlloyLever v1.0.2 By dntzhang
 *  Github: https://github.com/AlloyTeam/AlloyLever
 *  MIT Licensed.
 */

想使用vconsole的3.x版本,虽然配置了cdn,但加载时还是使用的默认的
s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js 地址,配置未生效

image

代码洁癖

代码写的很漂亮,但是作为一个喷子,不喷点啥老是不自在

87行 entry =document.querySelector(selector) 加个空格可好 entry = document.querySelector(selector)

205行 至最后,空格统一一下看起来舒服一些,不然好难受啊。哈哈哈哈

不能在head里面引入,和KISSY冲突

发现两个问题:
1、alloy_lever.js不能放到head里面引入,否则会有“TypeError: Cannot read property 'querySelectorAll' of null(…)”的错误提示;
image
会执行这里的语句

2、alloy_lever.js会被淘宝的KISSY影响,导致页面会有报错,可能是先载入了KISSY的文件,但是系统之前的架构里面有些js是放到里面的;
image

只用alloyLever能触发window.onerror事件,但引入了Vconsole之后触发不了

这是只引入alloylever的情况,url上没有带vconsole
c1d28761-7c4c-4623-b633-85ed355c3213
url带上vconsole之后
12ae6fab-ceda-412e-b50b-caab89609067
看了源码,没看出什么问题,请帮忙解决

看了一下是vconsole的问题,他里面重写了window.onerror方法

f.isFunction(window.onerror) && (this.windowOnError = window.onerror), window.onerror = function (t, o, n, a, i) {
                            var r = t;
                            o && (r += "\n" + o.replace(location.origin, "")), (n || a) && (r += ":" + n + ":" + a), e.printLog({
                                logType: "error",
                                logs: [r],
                                noOrigin: !0
                            }), f.isFunction(e.windowOnError) && e.windowOnError.call(window, t, o, n, a, i)
                        }

Uploading B7F6C832-CA6D-44CF-B66C-23B7B0EED3BC.png…

这是编译后的代码,又把e.windowOnError置为null,所以导致之前定义的window.onerror执行失败,
vconsole的下载地址是

文件引用位置:Cannot read properties 'querySelectorAll' of null 解决办法

非常感谢大神提供的调试工具。

按照说明,将script文件放置最开始位置,如下代码:

image

此时会提示如下错误:

image

该问题为当前页面元素没有加载导致。

需要调整文件引入位置,放置在body结束标签后引入的js文件中即可。如下:

image

希望能够帮到新手朋友们。^_^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.