clsr_dd

Javascript 的常见错误

` 常见错误

    Reference error 内置类型错误
    // console.log(a)

    //TypeError 数据类型不正确的错误
    let b=null;

    console.log(b.xxx)

    //RangeError 数据值不在允许的范围内

    function a(){
        let a='b';
        console.log(a)
        a();//Maximum call size stack exceeded
    }

    console.log(a)


    //SyntaxError 语法错误

    const c="""";

posted on 2020-07-10 20:57  clsr_dd  阅读(87)  评论(0编辑  收藏  举报

导航