摘要:
1.内部变量覆盖外部变量内部变量覆盖了外部变量后,变量提升:即脚本开始运行时,变量temp已经存在了,但是没有值,所以会输出undefinedvar tmp = new Date();function f(){ console.log(tmp); if (false){ var tmp =... 阅读全文
摘要:
上传: 1.html5 的FormData对象实现 var fd = new FormData(document.getElementById("fileinfo"));fd.append("CustomField", "This is some extra data");$.ajax({ u... 阅读全文