ITPub博客

首页 > 应用开发 > > 小白提问 为什么console.log( aa () );是undefined

小白提问 为什么console.log( aa () );是undefined

作者:jenliang 时间:2019-08-02 11:00:28 0 删除 编辑
<script>

~function a (){

        console.log("1111 ");

}();

function aa (){

        console.log("1111 ");

        return console.log("1111 ");

}

console.log( aa () );

</script>

为什么console.log( aa () );是undefined? 是什么原理造成的?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4565/viewspace-3121275/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-07-15

  • 博文量
    189
  • 访问量
    858