var aF = function() {
console.log("aF");
};
var bF = function() {
console.log("bF");
};
function numb(a, FunStart, b, FunEnd) {
a++;
b++;
console.log(a);
console.log(b);
FunStart();
FunEnd();
}
function Person() {
this.xingming = function() {
var mingzi = "aa";
console.log(mingzi);
numb(10, aF, 20, bF);
};
this.nianling = function() {
var suishu = 29;
console.log(suishu);
};
}
var people = new Person();
setTimeout(() => {
people.xingming();
}, 2000);
复制代码
构造函数的使用
最新推荐文章于 2023-01-25 14:51:17 发布