DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Titletitle> <style> body { font-family: "Microsoft YaHei", serif; } body, dl, dd, p, h1, h2, h3, h4, h5, h6 { margin: 0; } ol, ul, li { margin: 0; padding: 0; list-style: none; } img { border: none } style> head> <body> <script> // console.log(5 === 5); //true // console.log([] === []); //false // var a = function () { // // }; // var b = function () { // // }; // console.log(a === b); function a() { return function () { }; } var y = a(); var w = a(); console.log(y === w); //false 作用域不相同 产生的两个不相同的东西 script> body> html>
17-6-相等