JavaScript 函数
var num = 10
function func() {
var num1 =20
num =20
console.log("num1 ="+ num1)
}
func()
console.log ("num = "+ num)
============================
function func (){
var num = 20
p =30
console.log(p)
}
func()
//报错p是局部变量
console.log(P)
学无止境