JS中的黑暗操作


eval();

let info = '{name:"Harry Potter" , id:2011 , class:1 , math:79 , chinese:89 , english:65.5 , progromming:99 , avg:0 , sum:0 }'
function input() {

    // info = '{' + info +'}';
    console.log(typeof(info));
    console.log(typeof(eval("("+info+")")));
}

Array(15).join('1') + 'hello'

推荐阅读更多精彩内容