柯梓灵的博客js文件和变量初始化全局变量举例 js文件加载 全局变量举例 import * as turf from "@turf/turf"; import earcut from "earcut"; import * as THREE from "three"; import { TextGeometry } from "three/addons/...
Albert Yang的博客<script type="text/javascript"> var a = "Hello"; function test(){ var a; console.log(a); a = "World"; console.log(a); } //undefined //World var b = "Hello"; fun...