var url;
url = "aa";
test1()
function test1() {
console.log(url) //aa
}
console.log(url) //aa
複製程式碼
var url;
test1()
function test1() {
url = "aa";
console.log(url) //aa
}
console.log(url) //aa
複製程式碼
var url;
url = "bb";
test1()
function test1() {
url = "aa";
console.log(url) //aa
}
console.log(url) //aa
複製程式碼
var url;
test1()
function test1() {
url = "aa";
console.log(url) //aa
}
console.log(url) //aa
複製程式碼