function dragon(name){
this.name = name
}
function say(content){
console.log(this.name + ':' + content)
}
Function.prototype.myCall = function(params){
params = params || window
params.fn = this
let ars = []
for(let i = 1; i < arguments.length; i++){
ars.push(arguments[i])
}
let result = params.fn(...ars)
delete params.fn
return result
}
var kk = new dragon('CXK')
say.myCall(kk,'大家好,我是练习时长两年半的偶像练习生!')
var nums = [1,23,435,345,34,45,3,8,25,677,349,563]
var maxNum = Math.max.myCall({},...nums)
console.log(maxNum)