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复制代码