function Person(){}
var person = new Person();//Person
function fun(){
var index = 0;
//personsay
person.run = function(){
console.log(PPindex);//index
}
}
fun();//fun
//5personrun
for (var i = 0;i < 5;iPP) {
person.run();//12345
}
:funindexpersonrunindex