//1.创建AO对象
//AO{
//2.找形参和变量声明,将变量和形参名作为AO属性名,值为undefined
//3.实参形参值统一
//4.函数体找函数声明,值赋予函数体
//}
// function fn(a) {
// cosole.log(a);//function fn() undefined
// var a = 123;
// console.log(a);//123
// function a () {}
// cosole.log(a)//function a ()undefined
// var b = function () {}
// console.log(b); //123
// function d () {}
// }
// fn(1);
// function test(a,b){
// console.log(a);//function () {}
// console.log(b);//undefined
// var b = 234;
// console.log(b);//234
// a = 123;
// console.log(a);//123
// function a() {}
// var a;
// b = 234;
// var b = function () {}
// console.log(a);//123
// console.log(b);//function
// }
// test(1);
//问题:2
// function bar() {
// return foo;//function
// foo = 10;
// function foo() {}
// var foo = 11;
// }
// console.log(bar());
//问题:3
// console.log(bar());//11
// function bar() {
// foo = 10;
// function foo() {
// }
// var foo = 11;
// return foo;
// }
//问题:4
// a = 100;
// function demo(e) {
// function e() {}
// arguments[0] = 2;
// console.log(e);//2
// if(a) {
// var b = 123;
// function c() {}
// }
// var c;
// a = 10;
// var a;
// console.log(b);//undefined
// f = 123;
// console.log(c);//undefined
// console.log(a);//10
// }
// var a;
// demo(1);
// console.log(a);//100
// console.log(f);//123
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
[js] JavaScript的 预解释/预解析/预编译
JavaScript的 预解释/预解析/预编译所谓 预解释 预解析 预编译 是 JavaScript程序
javascript 预编译 赋值 数据 -
rknn预编译 预编译函数
作者| 张翰(门柳) 出品|阿里巴巴新零售淘系技术部 本文知识点提炼: 1、如何使用 Emscripten 把 C++ 编译成 wasm。 2、如何使用 wasi-sdk 把 C++ 编译成 wasm。 3、如何运行编译好的 wasm 包。 WebAssembly 是一个 W3C 推出的二进制指令格
rknn预编译 js中立即执行函数会预编译吗 WebAssembly github 实例化 -
centos7搭建ftp服务多用户
( 更新日志:时间:2019年1月12日事件:1、在目录7第4点修改了错误。pam_service_name=vsftpd.virtual修改为vsftpd。2、在目录7第5点增加了配置选项:write_enable=YES,解决无法读取目录的问题。3、在目录6vsftpd.conf配置文件中添加以下配置选项,解决云服务器被动模式无法登录的问题,提示,要在云服务器平台安全策略那里开放
centos7搭建ftp服务多用户 c++局域网主动ftp centos7 ftp服务器搭建 cmd ftp 创建两层目录